Re: Alt+F2 doesn't find scripts in ~/bin



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

Attachment: signature.asc
Description: This is a digitally signed message part



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]