From: Nick Bowler <nbowler@elliptictech.com>
To: Andreas Mohr <andi@lisas.de>
Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
Roman Zippel <zippel@linux-m68k.org>,
Michal Marek <mmarek@suse.cz>, Waldo Bastian <bastian@kde.org>,
Ryan Lortie <desrt@desrt.ca>,
Lennart Poettering <lennart@poettering.net>,
Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: Heads-up: Linux make menuconfig .config vs. XDG_CONFIG_HOME ~/.config/ clash - perhaps resolve it while 3.0 appears?
Date: Fri, 3 Jun 2011 10:38:24 -0400 [thread overview]
Message-ID: <20110603143824.GA3138@elliptictech.com> (raw)
In-Reply-To: <20110602182431.GA26282@rhlx01.hs-esslingen.de>
On 2011-06-02 20:24 +0200, Andreas Mohr wrote:
> "$XDG_CONFIG_HOME defines the base directory relative to which user
> specific configuration files should be stored. If $XDG_CONFIG_HOME is
> either not set or empty, a default equal to $HOME/.config should be
> used."
[...]
> It may thus be strongly advisable to rename the default name of the
> make menuconfig kernel .config file (perhaps .config_lx / .config_linux ?)
> to completely sidestep such a (mostly user-triggered)
> problematic clash in future.
If a program can't create its config directory or file(s), presumably it
will display an error message to that effect and the user can correct the
problem: after all, this scenario only occurs when the user puts a
kernel .config file in their home directory. I imagine that a user
which is capable of doing such a thing is also capable of deleting
files.
Furthermore, Once the ~/.config directory has been created (by running
any program that does so), this problem cannot occur.
There are many other reasons that a program might fail to access its
configuration data. I suspect that "no space remaining" or "read-only
filesystem" are more likely than "oops, I managed to put a .config file
in my home directory before running a single program that created
~/.config/".
Administrators can prevent hapless users from accidentally putting a
.config file in their home directory by creating a .config directory by
default. Distros could help here by putting an empty .config directory
in /etc/skel.
Renaming the .config file is obviously going to cause a lot of pain, and
there seems to be very little gain.
Cheers,
--
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)
next prev parent reply other threads:[~2011-06-03 15:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-02 18:24 Heads-up: Linux make menuconfig .config vs. XDG_CONFIG_HOME ~/.config/ clash - perhaps resolve it while 3.0 appears? Andreas Mohr
2011-06-03 8:25 ` Michal Marek
2011-06-03 13:17 ` Andreas Mohr
2011-06-03 14:38 ` Nick Bowler [this message]
2011-06-03 16:44 ` Arnaud Lacombe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110603143824.GA3138@elliptictech.com \
--to=nbowler@elliptictech.com \
--cc=andi@lisas.de \
--cc=bastian@kde.org \
--cc=desrt@desrt.ca \
--cc=lennart@poettering.net \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mmarek@suse.cz \
--cc=torvalds@linux-foundation.org \
--cc=zippel@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox