Updating to Xorg Path Problem

James McDonald james
Wed Sep 1 18:15:27 PDT 2004


is there anyway to have a look at the environment of a process?

I have just install X.org and the environment that it generates is 
kooky. I'm getting a double colon (::) in the path[1] and /usr/local/bin 
has dropped off the path also[2]... I have fixed these(see below) but I 
can't seem to get the parent xfce4 process to pick up the changes this 
is the .xsession file that launches the desktop.

[jamesm at amd jamesm]$ cat .xsession
#!/bin/sh
xrdb -merge ~/.Xresources
exec /usr/bin/startxfce4

This is FC1 so It's got all sorts of stuff in /etc/profile|profile.d 
what do I need to put in my xsession file to pull in a correct 
environment?... or if anyone can answer the first question about 
checking a running processes environment that would be well cool.


[1]
# this the file that get's rid of the double :
[jamesm at amd jamesm]$ cat .profile
delete_doubles=`echo $PATH | sed s+::+:+`

export PATH=$delete_doubles

[2]
# this adds /usr/local/bin back into the path
[jamesm at amd jamesm]$ cat /etc/profile.d/path.sh
PATH=$PATH:"/usr/local/bin"

export PATH




More information about the Linux-users mailing list