You are not logged in.
Pages: 1
I cant start some programs xfrun4 because they cannot be found. Launching xmessage $PATH this way shows that the only path seen is /bin:/usr/bin. How can I set the path globally?
Some things that I have tried without success:
Set the path in .bashrc: Path is set for the terminal session only
Copy the file /etc/xdg/xfce4/xinitrc to ~/.config/xfce4/ then add source ~/.bashrc as explained in the arch wiki.
Open a terminal after start and writing export PATH=$PATH:new/path
Edit:
I run xfce 4.8.0 on 64bit arch linux
Last edited by heptapod (2011-01-23 16:28:32)
Offline
Not entirely sure, but you should edit /etc/profile and change the PATH in this file.
Since this is totally specific to ArchLinux, you can check their forums.
Mike
Offline
Thanks.
Tried it without success. The path defined in /etc/profile is not the same as what xfce uses.
Tested a bit more and found out that the path xfce sees is always the same as the shell from which it is launched. So if I login to cli first and then launch X things work as they should. But when I autologin I get wrong path.
Here is my /etc/inittab
id:5:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:once:/etc/rc.single
rm:2345:once:/etc/rc.multi
rh:06:once:/etc/rc.shutdown
su:S:once:/sbin/sulogin -p
c1:2345:respawn:/sbin/fgetty tty1 linux
c2:2345:respawn:/sbin/fgetty tty2 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
x:5:once:/bin/su martin -l -c '/usr/bin/startx >/dev/null 2>&1'
Offline
What do you have in ~/.xinitrc? Maybe try to export the PATH there before the "exec startxfce4" line.
Offline
For some reason changing the last line in /etc/inittab to:
x:5:respawn:su - -- martin -l -c 'startx </dev/null'
solved the problem.
Offline
Pages: 1
[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 527.57 KiB (Peak: 528.48 KiB) ]