konsole - not reading /etc/profile, .bashrc

corey_s at cox.net corey_s at cox.net
Sat Dec 27 01:56:01 GMT 2003


On Sat, Dec 27, 2003 at 02:35:31AM -0700, James Richard Tyrer wrote:
> Joerg Erdmenger wrote:
> >Hi,
> >
> >I'm on KDE 3.1.1a (on a Gentoo 1.4 system). I've done something I wasn't 
> >aware of and now when I open new konsoles the won't read neither 
> >/etc/profile
> 
> Opening a new Konsole doesn't execute: "/etc/profile" or "~/.bash_profile"
> 
> >nor ~/.bashrc
> 
> However, it should execute your ~/.bashrc script.
> 
> >and I well get a blunt bash-2.05b$ prompt. Adding something to the execute 
> >line in the
> >setting doesn't help either. If I go to a new terminal everthing works 
> >fine. Any
> >suggestions?
> 
> My solution for this is to make my: "Xsession" script a login script.
> 
> You can also have the: "Xsession" explicitly source: "/etc/profile" or 
> "~/.bash_profile"
> 

  What I do is run 'bash -l': 

  Settings -> Configure Konsole -> Session

  In the "Session" box, hilite "Linux Console" *and* "Shell", then in the 
  "Execute" entry box, replace 'bash' with 'bash -l'.

man bash:
<snip>
  -l        Make bash act as if it had been invoked as a login shell (see
            INVOCATION below).


Beers,

Corey

___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list