Software & AppsOperating SystemLinux

How To Add Startup Applications in Lubuntu

Ubuntu 17

Lubuntu is a lightweight Linux distribution that uses the LXDE desktop environment. It’s a popular choice for older computers or systems with limited resources. One of the features that you might want to use is the ability to add startup applications. This guide will show you how to add startup applications in Lubuntu using various methods.

Quick Answer

To add startup applications in Lubuntu, you can use the Default Applications for LXSession utility, the lxsession-edit program, edit the autostart file, or create .desktop files. Each method offers its own advantages, allowing you to choose the one that suits your preferences and comfort level with terminal commands and text editors.

Using Default Applications for LXSession

The easiest way to manage startup applications in Lubuntu is through the Default Applications for LXSession utility. Here’s how to use it:

  1. Click on the Lubuntu icon on the bottom left of your screen.
  2. Navigate to “Preferences” > “Default applications for LXSession”.
  3. In the window that opens, select the “Autostart” tab.
  4. Here, you can enable or disable autostarted applications by checking or unchecking them in the list.
  5. To manually add an application, enter the executable path in the “Manual autostarted applications” field and click “Add”.

Using the lxsession-edit Program

Another method to add startup applications is by using the lxsession-edit program. Here’s how to install and use it:

  1. Open a terminal window and install the lxsession-edit program by typing sudo apt-get install lxsession-edit.
  2. Launch the program by typing lxsession-edit in the terminal.
  3. The program will provide you with an interface similar to the “Startup Applications” app in other desktop environments.
  4. Use the interface to add or remove startup applications as needed.

Editing the Autostart File

If you’re comfortable with using a text editor, you can manually add startup applications by editing the autostart file. Here’s how:

  1. Open a terminal window.
  2. Type sudo nano /etc/xdg/lxsession/LXDE/autostart (or sudo nano /etc/xdg/lxsession/Lubuntu/autostart in newer versions) to open the autostart file in the nano text editor.
  3. Add the desired applications by editing the file and specifying the necessary information. Each application should be on a new line and start with an ‘@’ symbol, followed by the command to start the application.
  4. Press Ctrl+X to exit, and Y to save the changes.

Creating .desktop Files

Creating .desktop files is another method to add startup applications. Here’s how to do it:

  1. Open a terminal window.
  2. Type nano ~/.config/autostart/application.desktop to create a new .desktop file in the autostart directory. Replace ‘application’ with the name of your application.
  3. Use the following syntax as a template, replacing the placeholders with the appropriate values:
[Desktop Entry]
Type=Application
Encoding=UTF-8
Name="NAME OF THE APPLICATION"
Comment="WHAT DOES THE APP DO?"
Exec="EXECUTABLE PATH OF APPLICATION"
Hidden=false
NoDisplay=false
Terminal=false
  1. Press Ctrl+X to exit, and Y to save the changes.
  2. Make sure the file is marked as executable by typing chmod +x ~/.config/autostart/application.desktop in the terminal. Replace ‘application’ with the name of your application.
  3. Log out and log back in for the changes to take effect.

In conclusion, there are several ways to add startup applications in Lubuntu, each with its own advantages. Depending on your comfort level with using the terminal or text editors, you can choose the method that suits you best. Remember to test your changes by logging out and logging back in to ensure your applications start as expected.

Can I add multiple startup applications using the methods mentioned?

Yes, you can add multiple startup applications using any of the methods mentioned. Simply follow the instructions for each method for each application you want to add.

How do I remove a startup application?

To remove a startup application, you can use the Default Applications for LXSession utility or the lxsession-edit program. Simply uncheck the application in the autostart list or interface, and it will no longer start automatically. If you added the application manually through the autostart file or a .desktop file, you can remove the corresponding line or delete the .desktop file.

Can I change the order in which the startup applications are launched?

Yes, you can change the order of startup applications by modifying the autostart file or the .desktop files. In the autostart file, the applications are executed in the order they appear. To change the order, simply rearrange the lines. In the .desktop files, the applications are launched in alphabetical order based on the file names. To change the order, rename the files accordingly.

Can I add command line arguments to startup applications?

Yes, you can add command line arguments to startup applications. In the autostart file or the Exec line of a .desktop file, simply append the command line arguments after the executable path. Make sure to separate them with a space. For example: Exec=/path/to/application --arg1 --arg2.

Do I need to restart my computer for the changes to take effect?

No, you don’t need to restart your computer. Simply log out and log back in for the changes to take effect. This will reload the LXDE desktop environment and start the applications you added to the startup list.

Can I add startup applications for specific users only?

Yes, you can add startup applications for specific users by creating the .desktop files in the ~/.config/autostart/ directory of that user. Each user can have their own set of startup applications by placing the .desktop files in their respective home directories.

Leave a Comment

Your email address will not be published. Required fields are marked *