Jump to content

Konsole not reading .bash_profile


Recommended Posts

I am having some very weird behaviour. It seems that Konsole is not reading/executing my .bash_profile.

 

I have added to my path and set the JAVA_HOME environment variable in there but none of that is available in Konsole. However, if I open up Eterm, then it is all there.

 

Anyone got any ideas? What am I missing here?

Link to comment
Share on other sites

Anyone got any ideas? What am I missing here?

 

im guessing you are booting straight to level 5 (X). if thats the case then your .bash_profile (and i think .bashrc) wouldnt be read and be better off putting it in your .bashrc so every new bash interpreter created would have your modifications.

 

i dont have an access to a linux machine right now so would somebody please confirm/deny this?

 

ciao!

Link to comment
Share on other sites

... so would somebody please confirm/deny this?
I deny it :twisted:

 

Seriously :D

 

.bash_profile is read and its commands are executed only if you start a bash login session.

.bashrc is read and its commands are executed only only if you start a non login bash session.

 

Normally .bash_profile include some code to source .bashrc, so every bash session behaves more or less in the same way (remember that non login shells inherit enviroment variables form their parent login shells).

 

this issue has arised many times here and in the old board.

 

For some reason, kdm doesn't run a login shell, so every bash session run after kdm doesn't source .bash_profile. Here you have an explanation from the KDE faq:

http://www.kde.org/documentation/faq/confi....html#id2913380

Link to comment
Share on other sites

... so would somebody please confirm/deny this?
I deny it :twisted:

 

Seriously :D

 

fuzzylizard,

 

here is what you have to compare.

 

ramfree17 - newbie (like the sig said), no linux exposure for 4 months, severely lacking in time to explore most projects, blabbermouth :roll:

 

aru - mub resident bash and script nut, oldtimer, provided a supporting link

 

 

i guess you already know who to believe. :#:

 

ciao!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...