Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 09-26-2004, 12:07 PM   #1
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Rep: Reputation: 31
PATH confusion

New installation of Sarge; still ironing out the details.

in /etc/profile, the default PATH is set as:
(that was set up by the debian installer; I haven't changed it)

in my ~/.bash_profile I put:

but if I type "env" or "echo $PATH" in a Gnome terminal window, the PATH is:

I searched around & found in /etc/init.d/gdm there's a line that says:

so that agrees with the first 4 entries I get in the terminal window, but where's /usr/local/sbin coming from? and what happened to /usr/bin/X11 and /usr/games and /usr/lib/brickos/util?

If I get out of X (by ctl-alt-F1) and login at the command line, then "echo $PATH" responds exactly as I would expect:

What's going on here? How do I set my path in X?
Old 09-26-2004, 12:44 PM   #2
Dead Parrot
Senior Member
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Perhaps you should also check ENV_SUPATH and ENV_PATH in /etc/login.defs. Different ways of logging in (from CLI or a GUI login) appear to use different shell configuration files. I've never figured out how it works exactly.
Old 09-26-2004, 01:29 PM   #3
Registered: Oct 2003
Location: USA
Distribution: Xubuntu, Arch
Posts: 231

Original Poster
Rep: Reputation: 31
OK, those 2 entries in /etc/login.defs agree exactly with what I get in Gnome terminal windows. (I guess when I checked the PATH earlier, I didn't realize I was in an su window.)

But, it seems that in an X session, my .bash_profile is just ignored. Is this normal in Debian? (It's not in Gentoo: there, my PATH in an X session is exactly the same as in console mode.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 08:45 AM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 07:10 PM
rpm path confusion - distro specific rpm? gandalf2041 Linux - Software 2 04-08-2004 03:19 PM
Help! Mandrake 9.2 PATH confusion joeln Mandriva 1 01-24-2004 11:49 PM
$PATH confusion snocked Linux - General 5 07-25-2003 11:06 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 09:39 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration