You are not logged in.

#1 2008-10-15 20:10:54

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Conf goes where?

I think this is the best place for this question... if not, sorry.

Should config files now be placed in ~/.config/app_name/, e.g. ~/.config/powerpill/powerpill.conf? Should each app have a separate directory under .config/ or is it acceptable to dump a single, clearly named config file directly in .config/ ?

I read something about that in the last few days but I don't remember where (maybe it was a pacman upgrade message). Is there a consensus on best practice?

Last edited by Xyne (2008-10-15 20:15:32)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#2 2008-10-15 22:35:54

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Conf goes where?

I can't remember when the ~/.config/ thing started, but historically, *nix apps have dumped the file directly to $HOME. Considering some very high-profile apps still do this (for instance, git), I tend to go with that way of doing things. It makes more sense and is less to type.

But, like I said, I have no idea where the ~/.config/ thing first came from. It is NOT part of the FHS or any similar standard. The first time I saw it was in OpenBox. So I'd start looking there if you want to find where this spec comes from (my guess might be here: http://standards.freedesktop.org/basedi … test.html)

Offline

#3 2008-10-15 23:06:52

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Conf goes where?

Thanks for the reply.

Dumping all configuration files in $HOME/.config makes sense to me, but I can also understand the argument of it just being extra characters to type in the path. I was mostly wondering if I should leave powerpill's conf file in $HOME, which I think I will while waiting to see if this catches on (or until people start requesting that it be moved... I supposed checking both paths would work too).

Last edited by Xyne (2008-10-15 23:07:12)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#4 2008-10-16 00:53:07

wirenik
Member
Registered: 2008-08-22
Posts: 134

Re: Conf goes where?

I myself prefer my config files to just be dotfiles in my home directory...the .config directory bugs me, because it takes longer to type XP


moljac024: No one really knows what happens inside /dev/null... it could be a gateway to another universe....
dunc: If it is, the people who live there must be getting pretty annoyed by now with all the junk we send them.

Offline

#5 2008-10-16 07:46:54

ezzetabi
Member
Registered: 2006-08-27
Posts: 947

Re: Conf goes where?

Instead I prefer .config/appname since the list of the appnames would be explicit and visible. I find completely stupid .config/.appname...

Offline

#6 2008-10-16 11:22:23

andre.ramaciotti
Member
From: Brazil
Registered: 2007-04-06
Posts: 649

Re: Conf goes where?

I find the $HOME/.apprc quite fuzzy, I prefer .config/app. I know it doesn't change a lot in organization, it's only one folder more, but it feels cleaner to me.


(lambda ())

Offline

#7 2008-10-16 11:47:48

robmaloy
Member
From: Germany
Registered: 2008-05-14
Posts: 263

Re: Conf goes where?

phrakture wrote:

I can't remember when the ~/.config/ thing started, but historically, *nix apps have dumped the file directly to $HOME. Considering some very high-profile apps still do this (for instance, git), I tend to go with that way of doing things. It makes more sense and is less to type.

But, like I said, I have no idea where the ~/.config/ thing first came from. It is NOT part of the FHS or any similar standard. The first time I saw it was in OpenBox. So I'd start looking there if you want to find where this spec comes from (my guess might be here: http://standards.freedesktop.org/basedi … test.html)

freedesktop.org wrote:

There is a single base directory relative to which user-specific configuration files should be written. This directory is defined by the environment variable $XDG_CONFIG_HOME.


☃ Snowman ☃

Offline

#8 2008-10-16 18:26:05

gnud
Member
Registered: 2005-11-27
Posts: 182

Re: Conf goes where?

Well, I have 403 hidden files and directories in my home dir.
I would be significantly happier with my computer if they were tucked somewhere I didn't have to navigate all the time.

Offline

#9 2008-10-16 19:37:45

monstermudder78
Member
Registered: 2008-05-18
Posts: 120

Re: Conf goes where?

Right or wrong, I think it is easier when programs that have multiple "configuration type" files (Openbox has 3, autostart.sh, menu.xml, and rc.xml) place them all together in one folder in the .config directory, e.g. ~/.config/openbox .  Due to the fact that I also like things neat, clean, and consistent I like it when ALL programs do the same thing, and using ~/.config/<app> seems to keep things the neatest and cleanest.

Offline

Board footer

Powered by FluxBB