How to add a program in Startup on Ubuntu

This is a simple tutorial on how to make any program to start up by default in Ubuntu:

  1. Start up the program you want to add in the startup.
  2. Open a terminal window and type the following command:

    xprop | grep WM_CLASS

    You will notice that your cursor will change to a cross-hair. Now click on the Application which you want to be added in the startup. You will get a string back like this: WM_CLASS(STRING) = “application”, “Application”

    I got this when I clicked on my Terminal window which I am using with Tilda

    screenshot tilda ubuntu

    Screenshot Tilda Ubuntu

    the first string tells the command for terminal is tilda.

  3. Now you need the path for the application. To get the path, use the “which” command in terminal. For eg. which tilda will return me the path to the program on my machine. Just substitute whatever the first string you got in place of “tilda”
  4. The system will reply a path like : /usr/bin/tilda. In your case it will be your application path.
  5. Copy the path and open the Session Manager from System > Preferences > Sessions. You will see a window like below:
    screenshot-sessions-preferences

    screenshot-sessions-preferences

  6. Click on the add button on the right and add the path you copied from the terminal window into the window
    screenshot-add-startup-program

    Adding a Program to Startup in Ubuntu

  7. That’s it. Logoff and login again. You will find the application you added in the Session Manager will start by default.

About Viki Pandit

  • Hello, all! I'm Viki, a user interface developer from Kolkata, India. I have worked on creating engaging web-sites and applications since 2005. When I'm not working, I spend most of my time playing video games, watching movies and trying to keep my girlfriend entertained, heh. I work by myself in my home studio and listen to a lot of music. I hope that all of you enjoy my posts! For more cool stuff, you may also follow me on Twitter.

    View all posts by Viki Pandit »

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>