Bug 145314 - Local file test in file dialog does not work when saving
Summary: Local file test in file dialog does not work when saving
Status: RESOLVED NOT A BUG
Alias: None
Product: kfile
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-11 15:08 UTC by Clarence Dang
Modified: 2018-04-14 15:44 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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