Bug 140101

Summary: KDM clears environment for new sessions
Product: [openSUSE] SUSE Linux 10.1 Reporter: Björn Voigt <bjoernv>
Component: X11 ApplicationsAssignee: E-mail List <kde-maintainers>
Status: RESOLVED WORKSFORME QA Contact: Stefan Dirsch <sndirsch>
Severity: Major    
Priority: P5 - None    
Version: Alpha 4   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Björn Voigt 2005-12-18 21:52:15 UTC
Since OpenSuSE 10.1 alpha 4 the K desktop manager (KDM) clears the environment variables for new sessions. It's regardless, which session the user starts with KDM (for instance kde, twm, ...). 

The only exception is the session "failsafe". In failsafe the environment is not cleared.

I think, clearing the environment variables is a bug, because users expect, that they can set environment variables with /etc/profile.local and $HOME/.profile scripts.

The PATH-settings from /etc/profile and /etc/profile.d/*.sh are also cleared by KDM. This is the minimal PATH after starting a KDE session:

$ echo $PATH
/opt/kde3/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games

I don't know, if KDM itself clears the environment. It's also possible that a X startup script clears the environment or the profile files are never read.
Comment 1 Michael Gross 2005-12-19 15:34:18 UTC
Let's ask the KDE maintainers. This could be an intended behaviour?
Comment 2 Björn Voigt 2006-02-04 13:49:39 UTC
Someone has probably fixes this bug already. I can not find this bug in 10.1 Beta1.