Bug 145314

Summary: Local file test in file dialog does not work when saving
Product: [Applications] kfile Reporter: Clarence Dang <dang>
Component: generalAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal CC: kollix, kolourpaint-support, nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Clarence Dang 2007-05-11 15:08:01 UTC
Version:            (using KDE KDE 3.5.6)
Installed from:    Compiled From Sources
OS:                Linux

KFileDialog fd (/*some arguments*/);
fd.setOperationMode (KFileDialog::Saving);
fd.setMode (KFile::File | KFile::LocalOnly);

You cannot save to home:/ as the file dialog doesn't think that that directory is local, unless you overwrite an existing file.  This is due to KIO::NetAccess::mostLocalURL() requiring file existence for a file to be considered local.

As a result, KolourPaint does not allow the user to save a wallpaper (File / Set as Wallpaper) to home:/.
Comment 1 Clarence Dang 2007-05-11 15:08:58 UTC
Kevin Ottens, I believe you do a lot of work with mostLocalURL()?
Comment 2 Christoph Feck 2009-08-27 02:37:35 UTC
Moving from "kio/kfile" component to "kfile" product, helps sorting out duplicates.
Comment 3 Nate Graham 2018-04-13 19:41:10 UTC
Why not just save to ~/ instead of home:/ ? And is this still an issue with KDE Frameworks 5.44 or greater?
Comment 4 Martin Koller 2018-04-14 15:44:51 UTC
I never heard about "home:/", it's not used in kolourpaint and "save a wallpaper" is long gone.
Let's close it