View Full Version : Add to Linux StartUp

July 27th, 2009, 12:51 PM
Hi everyone,
How can I add a program to Linux Startup? I want this program to be executed as an user logins and be closed as the user logs off? Any script to do this?
I don't want a daemon (it starts in boot process and doesn't terminate at logoff), I need something that shows an splash at login.
I wrote the splash in Qt and now just I have to add it to startup :(

Thanks a lot for your quick answer :)

July 27th, 2009, 01:00 PM
System > Preferences > Startup

That might be what you're after

July 27th, 2009, 01:26 PM
Thanks a lot,
But I have to 1) write a program to do that and do that 2) for all users( As EVERY login occurs ). I have to mention that maybe the user is domain user not local.

Thanks again

July 27th, 2009, 03:43 PM
I found /opt/kde3/share/autostart/ in openSuse and KDE based,
/etc/xdg/autostart/ & /usr/share/gnome/autostart/ in ubuntu
and GNOME based linux !!!

Is this the best way?!

July 27th, 2009, 07:20 PM
> program to run at user login

the usual way is, to list it in the user's .bash_profile
or equivalent for other shells

> to exit at logout