How to add a program as a startup application from a terminal?

Solution 1:

In your home directory, there's a folder called .config/autostart. Anything placed in this folder will be run when you login. This could be accomplished through the command line by creating the .desktop file with the command nano ~/.config/autostart/blah.desktop. If you like to find out about the syntax of .desktop files, you can visit Freedesktop and Gnome.