How do I add startup applications in Lubuntu/Lxde?

28

5

I want to add Gnome-Do to my startup applications in Lubuntu 10.04 and the only reference I've found on the net is to edit /etc/xdg/lxsession/LXDE/autostart. But surely there must be a way to do this on a user basis?

Peter Jaric

Posted 2010-05-28T19:13:20.283

Reputation: 1 756

Just a note of warning that my lubuntu system had "Disable autostarted applications" set to "config-only", which (as the name suggests) disables applications in the .config/autostart. Make sure this is set to "no", if you'd like to launch startup applications. It can be found in the GUI through: Desktop -> Preferences -> Default applications for LXSession -> Autostart -> Disable autostarted applications -> no – woodvi – 2014-02-22T17:17:07.380

Answers

22

http://wiki.lxde.org/en/Autostart

Add a .desktop file to your ~/.config/autostart directory (create one if not available) with 3 lines saying : [Desktop Entry]

Type=Application

Exec=wicd-client -n

Christoffer Madsen

Posted 2010-05-28T19:13:20.283

Reputation: 840

6

If the program you want to start has a *.desktop file, then simply copy or symlink it into the ~/.config/autostart directory.

Source:

Otherwise, for commands in general,

"For per-user autostart, use the ~/.config/lxsession/Lubuntu/autostart file."

It has the same format as /etc/xdg/lxsession/Lubuntu/autostart

Source:

yuzisee

Posted 2010-05-28T19:13:20.283

Reputation: 161

Worked like a charm on my Raspberry Pi! :) Thank you! – Mário Rodrigues – 2013-10-28T12:49:47.370

3

Preferences > Desktop Session Settings

From here you can add or remove startup programs.

Wes

Posted 2010-05-28T19:13:20.283

Reputation: 31

2

In case you don't like editing *.desktop files manually or the app you need does not have a *.desktop file in /usr/share/applications you could simply open ~/.config/autostart in pcmanfm, right-click on white space and select Create New -> Shortcut and fill in the Command field with whatever you need.

ccpizza

Posted 2010-05-28T19:13:20.283

Reputation: 5 372