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

Re: Some shell's problem



> >
> > look in
> >
> > ~/.kde/Autostart
> >
> > Make a file
> >
> > #!/bin/sh
> > export .......
> >
> > Change its permissions to executable,
> >
> > This should work

No, it shouldn't.

Whenever you put something into ~/.kde/Autostart, it gets _executed_ on KDE 
startup. That means all exports in the script are only valid for the 
script itself and its child-processes.

If you want to change your environment for more than just this script, you 
have to have your instructions sourced by bash (or your favourite shell). 
For bash, this means you should write your exports into your 
~/.bash_profile, some other shells use ~/.profile (i think).

If you want to make your export global, then you may wish to put it into 
your /etc/profile, wich is the system-wide .profile for bourne-shell and 
compatibles.

Hope this helps,
  Johannes
-- 
"More than machinery we need humanity" -- Charlie Chaplin, The Great 
Dictator

Attachment: pgp8Il9EQeO6f.pgp
Description: signature


Reply to: