Add Startup Program to (almost) Any DE

This is one of the more frequently asked questions I see on varoious forums- I’ve asked it myself in times past. So here’as a bit of a compilation.

Key word: almost. This covers the top five at least.  These are the DE’s used by the main *buntu spinoffs- but of course they will hold true for any distro using the DE.

In Ubuntu/Unity:

Click the gear icon in the upper right hand corner of the top panel. Select Startup Applications. Click Add. In the resulting dialog box give the name of the program and set “command” to the command you use to run the program from the terminal. Click add and close.

In Gnome shell

Press Alt+F2 to bring up the Run dialog. Type gnome-session-properties. Click the “Add” button. In the resulting dialog box give the name of the program and set “command” to the command you use to run the program from the terminal. Click add and close.

In KDE

Go to K-Menu>Computer>System Settings. Select Startup and Shutdown and click the Add Program button. Type the command to run the program and click OK.

In LXDE

Run the following commands in a terminal:

mkdir -p ~/.config/lxsession/LXDE/
touch ~/.config/lxsessions/LXDE/autostart
leafpad ~/.config/lxsessions/LXDE/autostart

Add this line to the autostart file:

@program_command

Save and close.

IN LXDE/Lubuntu

An autostart file already exists, in ~./config/lxsession/Lubuntu/autostart. Just use this file instead of making a new one, in the manner described above.

In XFCE

In the Applications menu open Settings Manager and select Session and Startup. On the Application Autostart tab click the Add button. In the resulting dialog box give the name of the program and set “command” to the command you use to run the program from the terminal. Click add and close.

Advertisements