Xfce Forum

Sub domains
 

You are not logged in.

#1 2011-01-23 16:23:04

heptapod
Member
Registered: 2011-01-23
Posts: 10

[Solved] How to set path

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

#2 2011-01-23 17:06:17

mmassonnet
Member
From: the milky way galaxy
Registered: 2006-07-30
Posts: 99
Website

Re: [Solved] How to set path

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

#3 2011-01-23 17:40:56

heptapod
Member
Registered: 2011-01-23
Posts: 10

Re: [Solved] How to set path

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

#4 2011-01-23 17:55:52

khanning
Member
Registered: 2011-01-17
Posts: 5

Re: [Solved] How to set path

What do you have in ~/.xinitrc? Maybe try to export the PATH there before the "exec startxfce4" line.

Offline

#5 2011-01-23 18:10:59

heptapod
Member
Registered: 2011-01-23
Posts: 10

Re: [Solved] How to set path

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

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.008 seconds, 8 queries executed - Memory usage: 527.57 KiB (Peak: 528.48 KiB) ]