This site will turn read-only at the end of September 2017.

The KDE environment

Posted by peeper on Wed 1 Feb 2006 at 08:46

Tags: ,
I'm running a number of Debian Sarge-based systems, with each using the Gnome Display Manager (gdm) to present a login screen after booting. From here the default is to log in to a KDE session.

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.

 

 


Re: The KDE environment
Posted by Anonymous (80.37.xx.xx) on Wed 1 Feb 2006 at 10:38
Easy.

if kdm is not installed:

aptitude install kdm

When installed:

dpkg-reconfigure kdm

[ Parent | Reply to this comment ]

Re: The KDE environment
Posted by Anonymous (69.76.xx.xx) on Wed 1 Feb 2006 at 14:09
I fail to see how this comment addresses the user's question in any way whatsoever. While I agree that using gdm with KDE makes no so sense since you've got to load GTK into memory for no reason and then load QT right away.

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 ]

Re: The KDE environment
Posted by Anonymous (212.62.xx.xx) on Fri 17 Feb 2006 at 19:34
Not that easy!
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 ]

Setting environment variables for X
Posted by thoger (62.168.xx.xx) on Wed 1 Feb 2006 at 15:41
You can try this approach:

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 ]

Re: The KDE environment
Posted by Anonymous (84.155.xx.xx) on Wed 1 Feb 2006 at 19:36
I would suggest to set the environment variables in the /etc/environment file, variables defined there will automatically apply at login for all sessions (console and X) and all users in the default PAM configuration of Debian Sarge.

-- roman

[ Parent | Reply to this comment ]

Re: The KDE environment
Posted by Anonymous (89.49.xx.xx) on Wed 8 Feb 2006 at 07:17
edit /etc/kde3/kdm/Xsession and add the line

. $HOME/.xsession

before the line ./etc/X11/Xsession

Then your personal scripts are sourced.

HTH

[ Parent | Reply to this comment ]

Re: The KDE environment
Posted by Anonymous (194.178.xx.xx) on Mon 13 Feb 2006 at 15:32
You certainly want to go visit + study the material on this website: It surely is the authoritative source for "everything KDE (administration)". Also, make sure you have a look at the KDE Kiosk framework. The KDE Kiosk framework allows an admin to (selectively!) lock down every single aspect of the desktop environment -- menus, wallpapers, commands, features, actions,... -- for individual users or user groups. There is a "kiosktool" GUI frontend to help setting this up: Cheers, Kurt Pfeifle

[ Parent | Reply to this comment ]

Re: The KDE environment
Posted by Anonymous (64.180.xx.xx) on Wed 15 Mar 2006 at 01:28
I'm not sure if this is exactly what you're looking for:

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 ]

Re: The KDE environment
Posted by Anonymous (138.37.xx.xx) on Sun 2 Apr 2006 at 23:20
roman was right setting /etc/environment did the job for me on debian sarge

[ Parent | Reply to this comment ]