How do I start a program after x/gnome starts?

GUI: System > Preferences > Sessions tool (Startup Programs)

or

Script: Put in a "Desktop Entry" file inside of:

~/.config/autostart (for user)
OR
/etc/xdg/autostart (system)


"Desktop Entry" Example:
Code:
[Desktop Entry]
Name=script1
GenericName=just a name.........
Comment=description........
Exec=~/script1.sh
Terminal=false
Type=Application
X-GNOME-Autostart-enabled=true
 
Another option is to start some programs from .xinitrc. Depending on the window manager, there can be menus or at least a way to run an xterm and then start a program from there.
 
Back
Top