xsession: source /etc/profile at the beginning of the script

The xsession script runs services that depend on a sane environment. Gpg-agent, for
example, runs the program "pinentry-gtk-2" to obtain the password to unlock GnuPG
and SSH keys. That program will display only gibberish unless $FONTCONFIG_FILE is
configured properly. Instead of configuring these variables explicitly one by one,
we just source /etc/profile, which contains the appropriate @shellInit@ code.
This commit is contained in:
Peter Simons 2012-11-05 23:07:53 +01:00
parent 458f36f5f1
commit 70e6e19f54

View File

@ -21,6 +21,7 @@ let
''
#! /bin/sh
. /etc/profile
cd "$HOME"
# The first argument of this script is the session type.