Re: Gnome doesn't see user's PATH

2005-06-24 Thread Marc Wilson
On Wed, Jun 22, 2005 at 11:49:51AM -0500, Forrest Smith wrote:
  Does anyone know why apps run from the panel aren't aware of
 user's environment vars, specifically PATH?

Sure... because gdm isn't a shell, neither is metacity, or the panel, or
any other part of Gnome with the possible exception of gnome-terminal,
which pretends badly to be one.

Thus, whatever shell init file you're setting up the environment in is
being ignored.  As it should be.  When you open a terminal window,
they're not ignored (since the shell they're meant for is now running).

-- 
 Marc Wilson | Chemist who falls in acid is absorbed in work.
 [EMAIL PROTECTED] |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Gnome doesn't see user's PATH

2005-06-24 Thread Vineet Kumar
* Forrest Smith ([EMAIL PROTECTED]) [050622 10:06]:
 Hi all!
 
  Does anyone know why apps run from the panel aren't aware of
 user's environment vars, specifically PATH?
 
  Example, if Mutt is executed from my panel, I can't execute
 commands that are in my PATH.  If I run it from a terminal window,
 I can.  The same goes for Emacs.
 
  I'm using Gnome 2.8.2 in Sarge.

As others have begun to explain, customizations you make to your shell
initialization files (e.g. ~/.bashrc) are only read by shells.  One way
to get these environment settings into your X session are by making that
X session a child of a shell process.  This is always the case when you
log in from a terminal and user startx, but not so when you log in from
gdm.  I use a ~/.xsession that looks like this:

exec /bin/bash -l -c '
/sbin/start-stop-daemon -S -b -u vineet --exec /usr/bin/urxvtd
/usr/bin/xscreensaver -nosplash 
gnome-settings-daemon 
gnome-panel 
psi 
gkrellm
xset r rate 400 40
xset m 18/10 0
xsetroot
exec fvwm
'

... but that's just me.  The imtportant piece is the first line.  It
says to exec a bash login shell, which will read my ~/.bash_profile
(which in turn reads my ~/.bashrc) and sets up some environment
variables.  You could try something simpler, like:

exec /bin/bash -l -c gnome-session

if you just want to run a gnome session as a child of your shell
process.

good times,
Vineet


signature.asc
Description: Digital signature


Gnome doesn't see user's PATH

2005-06-22 Thread Forrest Smith
Hi all!

 Does anyone know why apps run from the panel aren't aware of
user's environment vars, specifically PATH?

 Example, if Mutt is executed from my panel, I can't execute
commands that are in my PATH.  If I run it from a terminal window,
I can.  The same goes for Emacs.

 I'm using Gnome 2.8.2 in Sarge.


Thank ya,
  Forrest Smith





-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Gnome doesn't see user's PATH

2005-06-22 Thread Oliver Elphick
On Wed, 2005-06-22 at 11:49 -0500, Forrest Smith wrote:
 Hi all!
 
  Does anyone know why apps run from the panel aren't aware of
 user's environment vars, specifically PATH?
 
  Example, if Mutt is executed from my panel, I can't execute
 commands that are in my PATH.  If I run it from a terminal window,
 I can.  The same goes for Emacs.
 
  I'm using Gnome 2.8.2 in Sarge.

If you are also using gdm, the path it sets is defined
in /etc/gdm/gdm.conf (DefaultPath and RootPath)

I presume kdm and xdm have similar configuration features.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]