Re: konsole - not reading /etc/profile, .bashrc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

___________________________________________________
.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

[Index of Archives]     [Trinity (TDE) Desktop Users]     [Fedora KDE]     [Fedora Desktop]     [Linux Kernel]     [Gimp]     [GIMP for Windows]     [Gnome]     [Yosemite Hiking]
  Powered by Linux