The KDE environment
Posted by peeper on Wed 1 Feb 2006 at 08:46
Can anyone tell me where environment variables are set for a KDE session in order for them to take effect system-wide, for all users? I know that the KDE environment doesn't source any of the bash initialisation files (/etc/profile, /etc/bash.bashrc, ~/.bash_profile, etc), as I've experimented by changing the value of PATH in all of those files, without it having any effect on KDE's PATH environment variable upon session restart.
Maybe a better understanding of the start-up sequence from init bootstrap through to execution of an X-session, via an X login manager, would be useful? I have an outline understanding of the way that init starts up and forks for each terminal to present a login, etc, but I've yet to find anything that does a good job of explaining the way init starts and builds the environment for a graphical login and session, such as gdm and then a KDE session. Any guidance/links to good articles explaining this would be most welcome.
Thanks,
Peeper.
if kdm is not installed:
aptitude install kdm
When installed:
dpkg-reconfigure kdm
[ Parent | Reply to this comment ]
From gdm.conf:
# Default path to set. The profile scripts will likely override this
DefaultPath=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
# Default path for root. The profile scripts will likely override this
RootPath=/usr/local/bin:/usr/local/sbin:/sbin:/usr/sbin:/bin:/usr /bin:/usr/bin/X11:/usr/games
[ Parent | Reply to this comment ]
KDM in default installation does not have any conf. file as
a result is unable to bring up any display manager! (3.1)
ps sorry for my english
[ Parent | Reply to this comment ]
Create file in /etc/X11/Xsession/ named e.g. 10local_xuserprofile containing something similar to this:
USERPROFILE=~/.xprofile
if [ -f "$USERPROFILE" ]; then
. "$USERPROFILE"
fi
.xprofile should set environment variables you need and/or source other configuration scripts.This should be DM-independent solution.
[ Parent | Reply to this comment ]
-- roman
[ Parent | Reply to this comment ]
. $HOME/.xsession
before the line ./etc/X11/Xsession
Then your personal scripts are sourced.
HTH
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]
http://www.jirka.org/gdm-documentation/x227.html
Barely mentioned there is ~/.xprofile I'm, at this moment, trying to find out more about that one.
[ Parent | Reply to this comment ]
[ Parent | Reply to this comment ]