I have two scripts that I want run when a particular user performs a gui login. One performs a task (disable the touchpad). The other supplies a service (ssh tunnels to a remote mail server).
Two approaches come to mind for running these scripts as stated but I can't figure out how to make either one of them work.
1) Autostart:
K->Computer->System Settings->System Administration->Startup and Shutdown->Autostart->Add Script
Having both Startup and Shutdown options here looks like a good thing but no script that I specify remains specified after I close System Settings. There is no "apply" or "save" button that I can see.
2) Upstart (init)
My reading of man pages for Upstart leads me to believe that an event consisting of a user's gui login or logout can be used to start a task or service but I have been unable to find what "event" serves as the trigger for these actions. "man 8 upstart" lists "$HOME/.init/" under "files." This leads me to believe that things can be done by init for a particular user. This further implies that events like login or logout may exist.
Maybe Upstart is not yet mature enough to do what I want. I don't know.
I would appreciate any help in finding how to accomplish my desired functionalities. The people at the lugs in which I participate don't like KDE so everyone there is at least as ignorant about these matters as I am.
Two approaches come to mind for running these scripts as stated but I can't figure out how to make either one of them work.
1) Autostart:
K->Computer->System Settings->System Administration->Startup and Shutdown->Autostart->Add Script
Having both Startup and Shutdown options here looks like a good thing but no script that I specify remains specified after I close System Settings. There is no "apply" or "save" button that I can see.
2) Upstart (init)
My reading of man pages for Upstart leads me to believe that an event consisting of a user's gui login or logout can be used to start a task or service but I have been unable to find what "event" serves as the trigger for these actions. "man 8 upstart" lists "$HOME/.init/" under "files." This leads me to believe that things can be done by init for a particular user. This further implies that events like login or logout may exist.
Maybe Upstart is not yet mature enough to do what I want. I don't know.
I would appreciate any help in finding how to accomplish my desired functionalities. The people at the lugs in which I participate don't like KDE so everyone there is at least as ignorant about these matters as I am.
Comment