Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Lubuntu, there's no 'Add New Program...' button in Desktop Session Settings. Is there an easy way to add new autostart programs in Lubuntu?

share|improve this question
up vote 18 down vote accepted

For Lubuntu 11.10 / 12.04 / 12.10 / 13.04 / 14.04 / 14.10

Open the file manager (by default PCManFM), go to /usr/share/applications. Right-click on the program you want to be added to your autostart programs, and click Copy. Now, go to ~/.config/autostart in PCManFM, right-click and click Paste. The program should be added to your autostart programs now, but double-check by clicking the LXMenu down left, click Settings, and then Desktop Session Settings.

You may have to create the autostart folder. For an application that doesn't have a *.desktop file in /usr/share/applications you may also copy-paste any other *.desktop then update it with content suitable for your app.

share|improve this answer
Not working for me, fresh install Lubuntu 13.10. – Vitaly Zdanevich Oct 21 '13 at 5:54
Can confirm that it works for Lubuntu 14.10 – dani-h Apr 5 '15 at 23:35
Thank you, updated. – Exeleration-G Apr 6 '15 at 14:34

For Lubuntu 13.10

~/.config/autostart trick does not work in Lubuntu 13.10, but commands which are put in ~/.config/lxsession/Lubuntu/autostart file will be run automatically after login. Read more about it in this Ubuntu Forums post.

If you want to do it graphically, go to Preferences/Default applications for LX Session, then select the Autostart tab.

share|improve this answer
worked for me! thank you – Копать_Шо_я_нашел May 13 '14 at 19:03

For Lubuntu 13.10

In my example, I'll autostart cairo-dock.

  1. Create a file called .starter in your home dir and make it executable:

    touch ~/.starter
    chmod +x ~/.starter
  2. In that file write the command you want to be autostarted, save and close:

    leafpad ~/.starter
  3. Edit the autostart file in the lxsession directory:

    sudo leafpad /etc/xdg/lxsession/Lubuntu/autostart
  4. Add this new line:

    @/home/user/.starter ## Replace user by your name
  5. Save and close

  6. Reboot and it shall now run automaticaly

share|improve this answer
Not worked for me :( – Vitaly Zdanevich Nov 19 '13 at 16:09

I've had to do this a few times and the .desktop 'trick' never works for me. add the command to the autostart file: /etc/xdg/lxsession/Lubuntu/autostart

See this question for details.

share|improve this answer

Make a new shorcut to the program in your ~/.config/autostart directory.

For example, to make the drop-down terminal Guake start automatically, type this in a terminal:

cd ~/.config/autostart
ln -s /usr/share/applications/guake.desktop guake.desktop
share|improve this answer
Maybe you can expand your answer to explain how! – stephenmyall May 27 '13 at 19:11

There's a thread about this on the Ubuntu Forums.

I'm using Lubuntu 13.04 on a Samsung NC110 netbook, 2GB RAM.

A procedure that worked for me was:

  1. cd /etc/xdg/lxsession/Lubuntu
  2. sudo nano autostart
  3. Add programs wanted, save and exit.

Directly putting cli commands in autostart file causes lxsession user preferences to not load, thus I added bash into autostart (no /bin/ pathname necessary) and achieved my purpose)

I had originally wanted to try to

  1. reactivate LibreOffice Quickstarter
    • Make bash file with libreoffice --quickstart --nologo –nodefault
    • Place bash in /etc/xdg/lxsession/Lubuntu/Autostart file) and have pcmanfm to autostart up to my most commonly used directory (pcmanfm pcmanfm /media/a/LG/AC/Learn/).

Again, hope everyone can learn from my mistake. Definitely do not put regular cli commands directly into Autostart and expect them to execute normally, neither my desktop background, pcmanfm preferences (specifically the directory would open in icon view rather than my preference which is detailed view), nor my symbolic links loaded each time after bootup, and I was left with a desolate gray screen.

As soon as I deleted the cli commands and replaced it with bash file names, everything went back to normal.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.