Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
.bash_profile or .xprofile in gnome 3.12
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
waterloo2005
Apprentice
Apprentice


Joined: 26 Aug 2008
Posts: 271

PostPosted: Mon Jan 12, 2015 9:03 am    Post subject: .bash_profile or .xprofile in gnome 3.12 Reply with quote

I add `PATH="..."` in .bash_profile , but find that does not work.

I add that to .xprofile , it works.

In gnome 3.12 , why does .bash_profile not work ?

Thanks
_________________
i5-2450M, gnome, amd64
R,Mathematica,Emacs
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Mon Jan 12, 2015 10:29 am    Post subject: Reply with quote

~/.bash_profile is only read for login shells. Terminal emulators under X usually do not start a new login shell when you open a new terminal.
Back to top
View user's profile Send private message
waterloo2005
Apprentice
Apprentice


Joined: 26 Aug 2008
Posts: 271

PostPosted: Tue Jan 13, 2015 3:00 am    Post subject: Reply with quote

mv wrote:
~/.bash_profile is only read for login shells. Terminal emulators under X usually do not start a new login shell when you open a new terminal.


I know this .
Even I restart machine, PATH variable in .bash_profile still does not work.
_________________
i5-2450M, gnome, amd64
R,Mathematica,Emacs
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Tue Jan 13, 2015 9:14 am    Post subject: Reply with quote

You need a .profile that checks if it is an interactive shell & then source .bashrc
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Tue Jan 13, 2015 10:15 am    Post subject: Reply with quote

Naib wrote:
You need a .profile that checks if it is an interactive shell & then source .bashrc

Naib ... or visa-versa even :) ... but generally gnome-terminal, or what-have-you, will have "make shell a login shell" checkbox under preferences.

@waterloo2005 ... don't confuse knowing for understanding. You don't go through 'login' and so you don't have a 'login shell' ... no matter how many times you reboot :)

best ... khay
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Tue Jan 13, 2015 12:45 pm    Post subject: Reply with quote

khayyam wrote:
You don't go through 'login' and so you don't have a 'login shell' ... no matter how many times you reboot

Well, it depends: .xprofile is read by some shell (which is started by some display manager), and this shell might very well be a login shell. But it depends on the display manager and how it is set up; moreover, it might be that this login shell is e.g. dash.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum