[arch-projects] [initscripts][RFC][PATCH] locale.sh: add support for user-specific locale.conf, drop DAEMON_LOCALE
seblu at seblu.net
Tue Aug 28 10:31:09 EDT 2012
On Fri, Aug 24, 2012 at 7:44 PM, Tom Gundersen <teg at jklm.no> wrote:
> On Fri, Aug 24, 2012 at 7:02 PM, Dave Reisner <d at falconindy.com> wrote:
>> Still, I guess my point is that we should be testing for the presence of
>> variables before trying to expand them.
>> if [ -n "$HOME" ] && [ -s "$HOME/.config/locale.conf ]; then
> I agree. Will post a new version.
>>> The way XDG_* is set is just messed up. One might hope that one day it
>>> will be done better (say by a pam module). Shouldn't need to be part
>>> of xorg, it is useful even with no graphical login.
>> I think other distros might order scripts by number. I've always thought
>> that /etc/profile.d stuff is pretty ridiculous, but it's also roughly
>> par for the course when you're talking about anything involving shell.
> Sure, but most of these things are not shell-specific, so I hope
> something better will come along...
/etc/environment and ~/.pam_environment are loaded by pam_env. This
handle all loading of env vars without focus on locales one.
The missing feature is a kind of env.d directory.
Why not only drop all stuff based on scripts shell and use pam_env?
Sébastien "Seblu" Luttringer
More information about the arch-projects