Automatically Starting a Script

D. Michael McIntyre michael.mcintyre at rosegardenmusic.com
Wed Jan 2 02:53:50 UTC 2008


> When I restart my session, the shell scripts are _not_
> executed.
> Any ideas of how to get the scripts to automatically be
> launched?

I bet it's because they're shell scripts, and the session manager is only 
looking at applications that are running directly, instead of underneath an 
invisible instance of a shell.  I don't know if that's true, and I have no 
insider knowledge of how any of that works, but I do have an idea for a 
workaround.  Why not start one instance of each out of a run box, so instead 
of having something like this in the process table:

  /bin/bash /home/you/bin/emacs-foo-script

You'll have something like this instead:

  /bin/emacs option option option foo foo foo

(Or xemacs or whatever.  I don't speak emacs.)

Why not try setting it up that way and save the session, then see what 
happens?  If it was a stupid suggestion, at least it shouldn't waste vast 
amounts of your time or cause any irreparable harm to anything.
-- 
D. Michael McIntyre 




More information about the kubuntu-users mailing list