Bug 225553 - KFileDialog should store recent URLs in a separate config file
Summary: KFileDialog should store recent URLs in a separate config file
Status: RESOLVED FIXED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: Open/save dialogs (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-04 22:34 UTC by Alexander Wauck
Modified: 2020-08-02 09:25 UTC (History)
2 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 Alexander Wauck 2010-02-04 22:34:52 UTC
Version:            (using KDE 4.3.5)
OS:                Linux
Installed from:    Ubuntu Packages

URLs for recently-used files are stored in $HOME/.kde/share/config/kdeglobals.  This is not good behavior, as one may wish to copy that file among many computers (e.g. to avoid having to manually change time format) or maintain it in a VCS.  By putting the recently-used URLs in this configuration file, the file will be changed needlessly, complicating VCS usage and possibly leading to dead links on another machine if the file is copied over.  Also, if the home directory is on NFS, the URLs stored here may be invalid. Furthermore, needlessly updating this file risks losing settings in the case of a bug like the infamous ext4 data loss bug.  Instead, this sort of thing should be somewhere in $HOME/.local (for the NFS case, one could imagine a hybrid approach with unionfs or something so that .local is actually local, while everything else is not).

In short: it's bad, so please stop doing it.
Comment 1 Andreas Pakulat 2010-02-05 08:19:38 UTC
Please pay more attention in which product you file a report. This has nothing to do with kdevelop.
Comment 2 Alexander Wauck 2010-02-05 13:49:10 UTC
Looks like I will have to file a bug report against the bug reporting wizard; I have no idea how kdevelop got in involved.
Comment 3 Andreas Pakulat 2010-02-05 14:31:01 UTC
(In reply to comment #2)
> Looks like I will have to file a bug report against the bug reporting wizard; I
> have no idea how kdevelop got in involved.

I guess the reason is that you searched for "file selector" or something similar and we do have a component for that (as we do integrate a filesystem view in kdevelop) and the reporting wizard suggested you to use that.
Comment 4 Alexander Wauck 2010-02-05 16:11:04 UTC
Further investigation reveals that you are correct, Andreas.

As for the issue at hand, shouldn't Nepomuk handle recently-used documents?

More generally, I think we should separate configuration data that should follow the user between computers (e.g. desktop switching shortcuts) from configuration that should not (e.g. volume changing shortcuts for specific audio devices).
Comment 5 David Faure 2020-08-02 09:25:06 UTC
I think this is fixed by now.

In my kdeglobals I can only find a list of recent paths under the [DirSelect Dialog] group, which is from the deprecated class KDirSelectDialog in kdelibs4support.

The more common file selection dialog writes this into the application-specific config file (e.g. kwriterc), rather than kdeglobals.
(source: kfilewidget.cpp:615, and verified in practice).

Please reopen if I missed something.