How to Add Startup Programs

Open terminal and execute this to make a directory named autostart if it doesn’t exist already. Just execute it. It it exists, bash will let you know; and if it doesn’t, bash will create it.

mkdir ~/.config/autostart

 

Now you have to create a file using gEdit or any other text editor for the intended applications, which you want to run at startup. The name format for that file can be anything like applications_name.desktop. It’s mainly a .desktop file containing necessary info to run that specific program at startup.

[Desktop Entry]
Type=Application
Exec=/usr/bin/Clementine
Hidden=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Clementine
Name=Clementine
Comment[en_US]=Start Clementine when GNOME starts
Comment=Start Clementine when GNOME starts

 

All installed programs have their binaries in /use/bin folder. Search there and find the one you’re about to run at startup time.
In the above file, only change Exec, Name (both) and Comment (both). Leave the others, as they are. Then Save the file naming it using the format: applications_name.desktop e.g. I named mine as ibus.desktop as I wanted to run iBus daemon at startup.
Reboot you system. If everything else is okay and done as asked, your intended program should run at startup.

#raspberrypi2