How can I add new autostart programs in Lubuntu?

97,281

Solution 1

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

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.

Solution 2

For Lubuntu 19.04+

Click on Menu > Preferences > LXQt settings > Session Settings

Menu > Preferences > LXQt settings > Session Settings

Click on Autostart in the left pane of the window that appears:

Add applications to Autostart

In here, you can type in the appropriate command or search for an application to be included and even remove items you don't wish to autostart.

Solution 3

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.

Solution 4

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

Solution 5

In Lubuntu (Ubuntu) 17.10, I succeeded in using the file:

.config/lxsession/Lubuntu/autostart
Share:
97,281

Related videos on Youtube

Exeleration-G
Author by

Exeleration-G

I'm not a professional, I'm just trying to help other people with the knowledge I gained myself.

Updated on September 18, 2022

Comments

  • Exeleration-G
    Exeleration-G over 1 year

    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?

  • stephenmyall
    stephenmyall almost 11 years
    Maybe you can expand your answer to explain how!
  • Vitaly Zdanevich
    Vitaly Zdanevich over 10 years
    Not working for me, fresh install Lubuntu 13.10.
  • Vitaly Zdanevich
    Vitaly Zdanevich over 10 years
    Not worked for me :(
  • danihodovic
    danihodovic about 9 years
    Can confirm that it works for Lubuntu 14.10
  • Tim McElwee
    Tim McElwee about 7 years
    Just tried and it's working in Lubuntu 16.10. To verify using the GUI, go to the LXMenu > Preferences > Default applications for LXSession and select the Autostart tab. In the Known Applications list, check to see that the added applications are listed and checked.
  • Tomáš M.
    Tomáš M. over 2 years
    Still works in 20.04.3 :)
  • reducing activity
    reducing activity over 2 years
    Is anyone aware where config file is written?