[kde-linux] konsole PATH and LDLIB settings

Boyan Tabakov blade.alslayer at gmail.com
Thu Jul 5 07:58:21 UTC 2007


On Thursday 05 July 2007 07:12:31 Rod Butcher wrote:
> On Thu, 2007-07-05 at 13:51 +1000, Rod Butcher wrote:
> > On Wed, 2007-07-04 at 16:32 +0300, Boyan Tabakov wrote:
> > > On Wednesday 04 July 2007 15:44:51 Rod Butcher wrote:
> > > > I want to have differen t versions of konsole that I can run with
> > > > different environment variables e.g. I want one konsole to run with
> > > > PATH and LD_LIBRARY_PATH = abcdef and another with PATH=vwxyz.
> > > >
> > > > I can get kon sole to load with other environmental varaiables preset
> > > > (e.g. MACHTYPE) by using a wrapper script to execute the different
> > > > versions of konsole i.e. export shell variables and then load
> > > > konsole. But konsole always takes PATH and LD_LIBRARY_PATH from my
> > > > login defaults.
> > >
> > > Hi,
> > >
> > > It is not konsole itself that loads the variables from your profile. It
> > > is the shell that console executes (probably bash). When started the
> > > shell executes its initialization scripts (.profile, .bash_profile,
> > > .bashrc, see man page of bash for details on order and difference). If
> > > you wish to have different variables set for different konsole sessions
> > > you could create several initialization files and then set konsole's
> > > session (Configure Konsole -> Sessions -> Execute) to execute the
> > > command 'bash --rcfile .my_init_file1'. See the INVOCATION section in
> > > bash manual for details on other options of invocation.
> >
> > I tried setting Execute within console as you suggest i.e. Session ->
> > Execute -> bash --rcfile foo (foo contains export PATH= etc.). But foo
> > seems to be ignored.
> > However.. if I execute bash --rcfile foo from within konsole, then it
> > works OK i.e. I get a nested bash session with whatever values are set
> > in foo.
> > So how on earth do I get konsole to execure bash --rcfile foo ?
>
> D'uh... as usual I pressed send before engaging brain. If I setup a new
> konsole session name foo with bash --rcfile foo option and then  execure
> konsole --type foo I get what I want.
> thanks for the pointers
> Rod

You are welcome! Glad that you have it working as you'd like to...

-- 
Blade hails you...

I am the dark side of you
              --Nightwish
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-linux/attachments/20070705/bbe55b34/attachment.sig>


More information about the kde-linux mailing list