Mailinglist Archive: opensuse (3605 mails)

< Previous Next >
[SLE] Re: How does .bashrc work in KDE (Konsole) (Conclusion)
  • From: "Marius Roets" <roets.marius@xxxxxxxxx>
  • Date: Mon, 19 Jun 2006 10:54:35 +0200
  • Message-id: <5ddfa2210606190154p59a0417dne5e4d3122b6e3c88@xxxxxxxxxxxxxx>
On 6/16/06, Marius Roets <roets.marius@xxxxxxxxx> wrote:
Hi,
I have noticed something strange. If I do the following in my .bashrc :
export PATH=/mypath:$PATH
then I get the following path when I am logged into KDE and using Konsole:
/mypath:/mypath:/mypath:rest-of-the-path.
If I comment it out in .bashrc I just get:
rest-of-the-path.
When I do a ctrl-alt-F1 to switch to a console, and log in, it only
appears once as expected.

Any ideas why this happens.

I am using Suse 10.0 btw.

Marius

I have solved this by putting the required line in .bash_profile
instead. According to the bash documentation, .bashrc gets executed
for every shell, not just interactive ones. In a KDE environment, a
shell in Konsole is the child of at least 2 other shells. I'm not sure
how .bash_profile works, but it gives the expected (at least for me)
results. Only thing is that you can't change the settings in
.bash_profile within a KDE session. I have to log of, and log back in
for the settings to take effect on any new shells created. But since I
don't change these settings often, I will not spend anymore time on
this issue.

Thanks for all the suggestion.

Marius

--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx


< Previous Next >