Re: [kde-linux] upgrading to KDE 4.2.4



On Friday, 2009-12-04, Duncan wrote:
Kevin Krammer posted on Fri, 04 Dec 2009 21:28:06 +0100 as excerpted:
Actually there is a freedesktop.org specification for that, i.e.
$HOME/.config and $HOME/.local/share (both overridable through
environment variables, $XDG_CONFIG_HOME and $XDG_DATA_HOME
respectively).

KDE applications usually don't use paths at all, they do lookups based
on "resource types", e.g. "data", "config". It should be possible to
patch KDE libs to make "data" end up in $HOME/.local/share/appname/ and
"config" in $HOME/.config/appnamerc

Hmm... I knew about ~/.config/ (and wished it was config, not hidden,
and all the legacy .* config stuff would move to it!, that's more or less
what I've done using symlinks, here), but not about ~/.local/share/.

The spec [1] also specifies a local cache dir.
My guess on the .config vs. config is that $HOME is a likely location for
files the user cares about directly, e.g. documents and that it makes
therefore sense to put "indirect/internal" [2] data and config somewhere not
as visible.

Thanks. That makes quite some sense, and would indeed solve the
problem. Unfortunately, it'll be awhile before all those .* files/dirs
in my homedir are gone and data's no longer intermingled with config, but
it appears we're headed that way, at least. Maybe in another half decade
or so...

Main problem is data migration/moving. As I wrote before I think it could be
made the default for new user accounts.

Cheers,
Kevin

[1] http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
[2] "indirect/internal" in the sense that the file itself is just one possible
representation of the actual data, basically an implementation detail.
E.g. like a single mail file in a maildir folder: one usually doesn't work
with this file directly but through a mail user agent.

--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

Attachment: signature.asc
Description: This is a digitally signed message part.

___________________________________________________
This message is from the kde-linux mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Relevant Pages

  • Re: [kde] How Can I change wallpaper from CLI?
    ... looking for the appropriate wallpaper sections (note that there ... Apparently triggering config reparsing wouldn't be sufficient since the config is ... the thread spawned on the developer lists mentions that there is ... or kwriteconfig when manipulating KDE config files from commandline or script. ...
    (KDE)
  • Re: [kde] KMail accounts stored where?
    ... Since the accounts are all the same, do you think it would be safe just to ... copy the config file from the laptop to the desktop? ... If the problem persists you could ask on the user list for KDE PIM, ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)
  • Re: [kde-linux] KDE-4.3.2 settings - Regional & Language
    ... As we need to configure the money settings ( ... It sounds like the locale config file for the one machine is corrupted. ... something outside kde, or logged into kde as root, tho the latter is ... Once strace is installed, you can run it with the kcmshell command above ...
    (KDE)
  • Re: [kde-linux] How to Get the Combination of NTFS-3g and Konqueror (as a file manager) to c
    ... after upgrading to Mageia Linux Cauldron (the Mageia development branch ... The gam_server thread would go unresponsive, and because kde (kded, the ... component that notifies running kde apps when the config changes) depends ... Killing gam_server would often break the jam, but of course, then the app ...
    (KDE)
  • Re: [kde-linux] How to Get the Combination of NTFS-3g and Konqueror (as a file manager) to c
    ... after upgrading to Mageia Linux Cauldron (the Mageia development branch ... kernel I was running at the time and for me the resolution was that the ... The gam_server thread would go unresponsive, and because kde (kded, the ... component that notifies running kde apps when the config changes) depends ...
    (KDE)