FS#1617 - path problem with KDE 3.3.1 and tcsh
Attached to Project:
Arch Linux
Opened by Eric Belanger (Snowman) - Wednesday, 13 October 2004, 17:48 GMT
Last edited by Dale Blount (dale) - Wednesday, 13 October 2004, 17:50 GMT
Opened by Eric Belanger (Snowman) - Wednesday, 13 October 2004, 17:48 GMT
Last edited by Dale Blount (dale) - Wednesday, 13 October 2004, 17:50 GMT
|
Details
When kdm is used as display manager and tcsh is the default
shell, some directories like /opt/gnome/bin (maybe others)
are not in the path. Adding a:
[ -f /etc/profile ] && . /etc/profile to the csh/tcsh section in the /opt/kde/share/config/kdm/Xsession file fix it. Here is a snippet of my Xsession. <snip> */csh|*/tcsh) # [t]cshrc is always sourced automatically. # Note that sourcing csh.login after .cshrc is non-standard. set -a eval `$SHELL -c 'if (-f /etc/csh.login) source /etc/csh.login > /dev/null; if (-f ~/.login) source ~/.login > /dev/null; /bin/sh -c set | egrep -v "^(BASH_VERSINFO|EUID|PPID|UID|GROUPS|SHELLOPTS|_)="'` set +a [ -f /etc/profile ] && . /etc/profile ;; </snip> Thanks, Eric |
This task depends upon
to get rid of that problem
would it help to add the PATHS to kdmrc?
just a question because i want to release a new kdmrc soon
and then only one file has to be changed
the option can be found in
/opt/kde/share/config/kdm/kdmrc or kdmrc.config.default if you already changed the kdmrc with the gui
feedback on this would be great
tahnks in advance
else we have to change the Xsession file too
please post the needed PATHS here :)
The
[ -f /etc/profile ] && . /etc/profile
line was present in the Xsession file of KDE 3.2
The needed paths are: /sbin:/usr/sbin:/opt/eclipse:/opt/gecko-sdk/bin:/opt/glchess
/opt/gnome/bin:/opt/java/jre/bin:/opt/java/bin:/opt/opera/bin
/opt/qt/bin:/opt/xfce4/bin
They are all "defined" in /etc/profile.d/*
I also notice that /opt/openoffice/program isn't included in the path by my method. Probably OpenOffice needs a script similar to those in /etc/profile.d to export its path.
BTW, I noticed that xdm had a similar problem (Task #1590 - xdm doesn't run . /etc/profile)