Re: [kde] RFC: Use ~/.etc/kde4 instead of ~/.kde4 for personal configs



Hi Richard,

On Tuesday 18 September 2007, Richard Hartmann wrote:
Hi,

I am well aware that with the API freeze, my idea might be too late
anyway, on the other hand, a major version number change would
be the perfect opportunity to implement a plan like this.


My proposal is simple:

Use ~/.etc/kde4/ for configuration and data instead of ~/.kde4/ for
KDE4.

Rationale:

1) Reduces clutter of the user's home directory.

2) Puts everything into one place (I will be trying to sway some
other major apps over the next weeks and months)

3) Follows the layout of Unix configurations and basic data by
imitating /etc/

4) Makes keeping personal etc files in a version control system
even easier (does probably not apply to KDE)

The XDG base dir spec [1] uses ~/.config and a couple of projects and even
companies already use that.
Additionally to the user-local directory it also specifies a global path list
(similar to $PATH) and environment variables to override them.

As KDE already uses ~/.kde4 , the basic idea of grouping those
files in one common location is already implemented. Look at
~/.etc as a logical consequence of applying this idea to all of the
user's etc files.

One of the things is that KDE does not only need a config directory, but
several other resource directories as well.
While the base dir spec [1] also specifies directories for cache and data, KDE
additionally has directories for sockets, temporary files, etc.

The rational to have all of them under the same ~/.kde/ directory
(overrideable by KDEHOME) is basically a bit like yours, i.e. not to clutter
the home directory with several subdirectories but only one.

However, I agree that we could have a look at using XDG_DATA_HOME/kde4 for
application data and XDG_CONFIG_HOME/kde4 for configuration.
It's a bit late now for 4.0 and unfortunately any later version will have to
take care of backwards compatability as well.

Cheers,
Kevin

[1] http://www.freedesktop.org/wiki/Specifications/basedir-spec
--
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 mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Relevant Pages

  • Re: [kde-linux] Kget "My Downloads" [Is this MS Windows?]
    ... It is a string literal in the i18n function. ... KDE hasn't reached that number of contributors or popularity yet where it ... working on developer documentation. ... produce a 99% working product as well as producing new nifty features. ...
    (KDE)
  • Re: [kde] Yet another failed KDE release?
    ... ESPECIALLY after promising support "as long as there are users!" ... triggered a drop of a lot of my former kde software choices with the bump ... kmail, but somewhere about the time it lost my 10th mail or so and I was ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)
  • Re: [kde] KMail accounts stored where?
    ... the priorities of KDE's rather small Windows based developer group. ... but I can't find where the account configurations are stored. ... I think this is part of the KMail main configuration file kmailrc. ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)
  • Re: [kde-linux] Kget "My Downloads" [Is this MS Windows?]
    ... It is not necessarily inexperience of the developer in matter of development, ... had on qt4 was already not negligible. ... kde are getting more full-time professional development and support than ... mostly optional modular libraries built around a central core. ...
    (KDE)
  • Re: [kde-linux] Kget "My Downloads" [Is this MS Windows?]
    ... Even if one does do that the answer could be that there is no such API at the ... KDE hasn't reached that number of contributors or popularity yet where it ... working on developer documentation. ... produce a 99% working product as well as producing new nifty features. ...
    (KDE)