Starting an appliction on login with Ubuntu

My desktop is an Ubuntu install. I want my instant messaging client to start automagically when I login. It doesn’t make sense to use /etc/init.d to start it, because I want the app to be run as my user, and I want it to start with my windowing session.

How does one do this with Ubuntu?

Note: These instructions work for Ubuntu 6.10, or Edgy Eft. I have not tested them on other distributions

  1. Open the Ubuntu “System” menu, go to “Preferences”, and select “Sessions”
  2. The Sessions dialog will open. It allows you to control what programs start when you log into X/GDM. It’s kind of ugly, and looks like it can do with a little love from a UI expert.
  3. The tab we’re interested is “Startup Programs.” Switch to that tab and click “Add.”
  4. In order to launch the given program, you need to know its path. In this case I care about pidgin, which is in my path, so I can just type pidgin.
  5. Click “OK”, and close the Session dialog.

You’re done! Test that the setup worked by logging out of X, and logging back in. Pidgin should start automatically.

7 Responses to “Starting an appliction on login with Ubuntu”

  1. 2007.Jun.17 @ 03:37

    Thanks, but do you know how to start pidgin just in the tray, as an icon? When I login now, it automatically opens the Pidgin window and that is rather annoying.

  • 2007.Jun.17 @ 10:44

    @Bert: Good question. I usually leave pidgin maximized on one of my desktops, so no, I don’t know. Sorry.

  • 2007.Jun.17 @ 11:22

    I think there’s an option *in pidgin* that says something like ‘start minimized’

  • 2007.Jun.17 @ 13:02

    There is an app called devilspie that is available in the repositories that can be used to determine window state (maximise, minimise, etc), window position, what workspace to place them in and more. I think this could be your answer. Caveat: I haven’t actually used it, but it sound like it would be just the thing you need.

  • 2007.Jun.17 @ 14:01

    @ e: I answered your comment on UbuntuHQ.
    @ pj, blah: There’s no option in Pidgin to start it minimized, and there really should be. Thanks for the devilspie tip, I’ll check it out as soon as I have time!

  • 2007.Nov.09 @ 04:57

    Hello I tried the devilspie app and it sorted out pidgin for me. Check the link for a tutorial.

  • 2007.Nov.09 @ 04:58

    http://ubuntu-tutorials.com/2007/07/25/how-to-set-default-workspace-size-and-window-effects-in-gnome/

    This link oops!

    Thanks blah for pointing me in the right driection

  • Reply

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

    If your website is claim enabled, it will be notified that you have posted here.