How do I add startup applications in Lubuntu/Lxde?

Solution 1:

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

Solution 2:

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

Source:

  • http://wiki.lxde.org/en/LXSession#autostart
  • http://standards.freedesktop.org/autostart-spec/autostart-spec-latest.html

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:

  • https://askubuntu.com/questions/47532/autostart-dropbox-in-lubuntu/47570#47570
  • http://wiki.lxde.org/en/LXSession#autostart

Solution 3:

Preferences > Desktop Session Settings

From here you can add or remove startup programs.

Solution 4:

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.