LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-17-2005, 07:55 PM   #1
racarter
LQ Newbie
 
Registered: May 2005
Distribution: Debian 3.1 and others
Posts: 3

Rep: Reputation: 0
$PATH different in gnome-terminal


I changed my $PATH variable in /etc/profile. It works when I login via ssh or when I use "su -" but not in gnome-terminal. I'm using debian 3.1 and gnome & gdm. I'm trying to track down where else the $PATH variable might be defined, ~/.bash_profile and ~./bashrc look ok to me. Anyone have any ideas?
 
Old 05-17-2005, 09:06 PM   #2
ilikejam
Senior Member
 
Registered: Aug 2003
Location: Glasgow
Distribution: Fedora / Solaris
Posts: 3,109

Rep: Reputation: 97
Hi.

You'll have to fully log out, then log back in for changes in /etc/profile to take effect. Your gnome-terminals are using the environment from when Gnome was last started, which is the same as the last time you logged in.

Dave
 
Old 05-17-2005, 09:10 PM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I believe profile files are only read on login shells, which an xterm, gnome-terminal, etc. is not.
 
Old 05-17-2005, 10:01 PM   #4
racarter
LQ Newbie
 
Registered: May 2005
Distribution: Debian 3.1 and others
Posts: 3

Original Poster
Rep: Reputation: 0
The path in gnome-terminal stays the same even after I reboot.

Some path is set in my gnome-terminal, where does that get set and how do I change it? Is there a way to make xterm & gnome-terminal into a login shell?
 
Old 05-17-2005, 11:24 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I *believe* that path is inherited through the X system. If you want to set up a path for all shells you use, you can edit the ~/.bashrc file. I am not aware of any global file executed by all bash shells.
 
Old 05-18-2005, 06:22 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You could type in "bash -l". This will start a sub-login shell and run ~/.profile or ~/.bash_login depending on which you use.
 
  


Reply



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
Changing environment variable for gnome session from gnome-terminal pymehta Linux - Software 1 10-11-2005 05:19 PM
kdesu - su not in path, console/terminal doesn't work. Monster_user Debian 1 06-09-2005 10:46 PM
configuring terminal so not to show full path harshnoise SUSE / openSUSE 2 02-26-2005 07:42 AM
Alternative terminal to konsole & gnome-terminal Adony Linux - Software 3 10-08-2004 03:59 AM
Terminal editor's path/variable Will Linux - General 1 11-10-2001 03:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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

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