Am 29.08.2011 14:13, schrieb Maciej Marcin Piechotka:
On Mon, 2011-08-29 at 13:05 +0200, Ralph Hofmann wrote:
Am 28.08.2011 14:31, schrieb Maciej Marcin Piechotka:
On Sun, 2011-08-28 at 13:23 +0200, Ralph Hofmann wrote:
I can start my scripts in ~/bin from the terminal, because I have added
~/bin to PATH.

However from Alt+F2 the scripts are not found.

Is there anything, I can do about it?
Q1: Are there in the shell path. If they are just added
to .bashrc/.zshrc/etc. it won't work.

I use the trick:
% cat .xsessionrc
source $HOME/.profile
% cat .zshrc
...
source $HOME/.profile
% cat .profile
if [ x$_PROFILE_SET != x_PROFILE_SET ]; then
export _PROFILE_SET=_PROFILE_SET

...
fi

Regards
I just have:

export PATH="$HOME/bin:$PATH"

in my .bashrc.

I don't understand what your trick is doing. How does your .profile
look like? I don't have any .profile.

Ralph


http://unix.stackexchange.com/questions/4621/correctly-setting-environment/4628#4628

The problem is that .bashrc is read by bash and bash only. In this
specific instance it is not read on GNOME startup. File that is read
during GNOME startup is called .xsessionrc.

Regards


_______________________________________________
gnome-shell-list mailing list
gnome-shell-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-shell-list

export PATH="$HOME/bin:$PATH" in .xsessionrc doesn't do the trick either.

@gnome-shell developers: I think there should be a way to setup the PATH for 
alt+F2.




_______________________________________________
gnome-shell-list mailing list
gnome-shell-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gnome-shell-list

Reply via email to