Bug#153612: per-user environment variables.
Hello,
I have stumbled on the same problem and was just going to file a bug. I need
an environment variable set on login. There is no way how this can be done in
Debian without sacrificing the session type chooser and switching to a
~/.xsession setup. I don't want that, since I want to be able to select a
different window manager/session upon login.
The only alternative is to install a script in /etc/X11/Xsession.d, which
requires talking to root.
Branden Robinson wrote:
> Thanks for the patch, but the reason isn't being fixed isn't because
> it's difficult. It's because I disagree on design grounds with the
> idea.
> A user X session file should *replace* the system's default X session,
> not augment it.
I believe I agree with you that .xsession should create a complete session,
including the window manager.
OTOH, I think introducing a per-user config file that is executed (sourced) on
_every_ login or at least on every non-.xsession login would be very nice for
setting environment variables etc.
How about "~/.profile"?
> However, local admins can disagree, and that is why the scripts that
> control the system default X session in Debian are "conffiles",
> modifiable by the local administrator, whose changes will be preserved
> by the packaging system across upgrades.
That is true. But if a user who uses the session-type-chooser needs to set an
environment variable (or execute gpg-agent, or ...), he needs to talk his
admin into changing the login scripts in some proprietary way. A default for
that would be nice.
Sebastian
--
Under capitalism man exploits man. Under communism it's the other way around.
Reply to: