Are you manually loading applications each time you turn on your computer? Wouldn’t you rather have them automatically load instead? Here’s how to auto-start applications in Linux.
Starting Applications at boot in Linux is fairly easy to do but the methods change depending on the distro and desktop environment you’re using. This article is will show you how to do it on all of the main environments of Linux. The following sets of instructions are not all going to be relevant to everyone so please scroll to the portion that is most relevant to your system. The sets of instructions include: Unity (Ubuntu), Cinnamon (Linux Mint), GNOME, KDE, MATE, LXDE, XFCE, Moksha (Bodhi Linux), Budgie (Solus), and Pantheon (elementaryOS).
Benefits of Auto-starting Applications
Auto-starting Applications, also known as Startup Applications, is the process of setting specific programs to automatically launch themselves when you turn on your computer. This is a great time saver if you find yourself launching the same applications every day when you first boot your computer. For some users, this is possibly more useful for running background applications so you can always have specific tools available to you. A great example of a background application to run is KDE Connect, or the KDE Connect Indicator, for syncing your computer with your Android phone.
The process of setting applications to start automatically in Linux is a bit confusing because every distribution (distro) and desktop environment (DE) does it differently. In some cases, the process is very easy where you just select an application from a list of what you have installed but other times you have to know the exact commands used to launch an app.
Unity, Ubuntu’s Default Environment
Ubuntu is probably the most commonly suggested distro for beginners which makes it odd that this feature is not user-friendly in Unity. Auto-starting applications is not available in the System Settings, unfortunately; instead it requires you to search the Dash for the Startup Applications tool.
In the Startup Applications tool, click the Add button on the right side of the window. Ubuntu doesn’t provide any convenience for selecting applications so you have two options to continue, 1.) Enter the name of the application and the command to launch it (if you know it) or 2.) Click the Browse button, from the sidebar choose Computer and navigate to the /usr/bin folder. The /usr/bin folder contains a binary file for launching all programs installed in your computer so this could be overwhelming for some, watch the video below for the guide.
In the video above, I demonstrated how to search for the app in that you navigate to the /usr/bin folder and just start typing the first few letters of the binary name.
Cinnamon, Linux Mint’s Default Environment
Linux Mint‘s method of Autostarting Applications is a nice mix of GNOME’s simple approach, Ubuntu’s technical approach and some extra custom features. From the Mint Menu, open System Settings and choose Startup Applications from the Preferences section. At the bottom of the window, click Add and then Choose application. In the next window, you can scroll through the list and select the application you want or you can just start typing to reveal the hidden search function. Lastly, click Add Application to add it to the list.
Once the application has been added, you will see an ON/OFF Toggle and Delay controls along with the entry. The delay setting can be used in many different ways; I use it to set the order of the applications. To change the delay, select the application and click Edit at the bottom of the window. On the next window, use the Minus (-) or Plus (+) buttons to change the number, or just type in a number. At times, Linux Mint provides an attention to detail that is often one of the reasons it is considered an Ubuntu Killer to some.
GNOME via Ubuntu GNOME
GNOME does not provide a default feature for Auto-starting Applications but the GNOME Tweak Tool has corrected this. The GNOME Tweak Tool is available by default in almost all GNOME based distros so you shouldn’t be required to install it. I used Ubuntu GNOME in the demo video but the instructions are relevant for all GNOME users as the GNOME Tweak Tool is universally available. Although, if you are using Ubuntu GNOME then you can find Ubuntu’s tool in the GNOME Overview as well.
Clicking on Activites at the top left (or press Super aka Windows key) will open the GNOME Overview. Using the Overview Search, type in tweak and launch the Tweak Tool. You can also scroll through the applications grid if you’d prefer. Click Startup Applications on the left sidebar and then the large Plus button to open a new dialog window. You can select the application by scrolling through the list or start typing the name to reveal the hidden search feature.
KDE via Kubuntu
The KDE Project is currently transitioning to their latest version, Plasma 5, which is the version Kubuntu 15.10 uses is demoed in the video below. The process for managing startup applications in KDE is identical in functionality in both Plasma 5 and KDE4 so the video only demonstrates Plasma 5.
In the Application Launcher, navigate to the Computer section and open System Settings application. Startup and Shutdown, in the Workspace section, is where you’ll manage the entries. In Autostart, selected by default, click Add Program to scroll through the categorized list of applications or to search for the application. Clicking OK to continue will present you with a summary of what you are about to add, click OK on that window to complete the process. Plasma also allows you to auto-start custom scripts so to do that click Add Script, click the square browse and navigate to your script.
MATE via Ubuntu MATE
Open the Control Center from the System menu at the top left of the screen and from there click Startup Applications. If you are using Ubuntu MATE then you may have changed the look of the system via the Interface Switcher. If so, the method of opening the Control Center may be different for you.
MATE based distros use the same tool that Ubuntu (with Unity) does to manage the auto-starting applications so the process is the same. In the Startup Applications tool, click the Add button on the right side of the window. Enter the name of the application and the command to launch it, if you know it, or Click Browse, choose Computer from the sidebar and select the application in the /usr/bin folder.
LXDE via Lubuntu
LXDE’s solution to auto-starting applications is somewhat hidden inside of another tool, LXSession settings. From the LXDE main menu navigate to Application and Settings > Preferences > Default applications for LXSession. The Autostart tool, selectable on the left sidebar, in LXDE is rather limited so you will need to know the command of the application that you want to add.
LXDE does not provide a way to browse for binaries in the Autostart tool but Lubuntu has provided a solution to this via PCManFM (file manager). In PCManFM, the Applications places entry, on the left sidebar, will present a collection of categories. Browse through the categories until you find the App, right click the app and choose Properties from the context menu. Click the Desktop Entry tab in the Properties window, copy the command inside the Command field, paste it into the Autostart field in LXSession, and finally click + Add.
XFCE via Xubuntu
XFCE shares the same Startup Application tool for adding applications that Ubuntu and MATE use but the management of the list is done through a settings tool called Session and Startup.
In the Whisker Menu, go to the Settings category and open the Session and Startup tool. In the Session and Startup, go to the Application Autostart tab to auto-start entries and from there click Add on the bottom left. At this point you will be presented with the same Startup Tool that Ubuntu and MATE use. Click the Add button on the right side of the window. Enter the name of the application and the command to launch it, if you know it, or Click Browse, choose Computer from the sidebar and select the application in the /usr/bin folder.
Moksha via Bodhi Linux
Moksha is a lightweight focused desktop environment, forked from Enlightenment, made by the Bodhi Linux project. Moksha’s auto-starting applications process appears to be a unique implementation to the Moksha desktop.
In the Moksha menu, navigate to Settings > All > Apps > Startup Applications. The System tab is for managing system utilities to the startup sequence, the Applications tab is for managing applications and the Order tab allows you to control the order of the startup entries. Click on the Applications tab, select an application from the list, and click Add to add it to the startup sequence. There doesn’t appear to be a way to add custom commands or scripts in the tool so if the utility or application is not found automatically it may require further research to add it. If you know of a way to do this already please post in the comments below.
Budgie via Solus Project
The Solus Project has developed a stunning desktop environment, that’s a fork of GNOME 3, called Budgie. Due to Budgie being a fork of GNOME, the Startup Applications are controlled in Budgie/Solus via the GNOME Tweak Tool.
Type tweak at the top of the Budgie menu and open the Tweak Tool. Click Startup Applications on the left sidebar and then the large Plus button to open a new dialog window. You can select the application by scrolling through the list or start typing the name to reveal the hidden search feature.
Pantheon via elementaryOS
Pantheon is the GTK+ based desktop environment created by the elementaryOS and while Pantheon feels similar to GNOME 3, it is not a fork of GNOME, so the management of Auto-starting Applications is similar but it also quite a bit different.
From the upper rightmost portion of the Wingpanel, choose System Settings in the system (power icon) menu. Choose Applications > Startup from the System Settings to navigate to the startup tool. You’ll see Plus (+) and Minus (-) buttons in the bottom left of the Startup tool. Select an app from the list, search for an app at the top of the list, or enter a custom command at the bottom of the list. Once you’ve added items to the list you can disable them with the activity toggle or remove them via the Minus (-) button at the bottom.
Making Linux Life Easier with Automation
What applications do you auto-start when your computer boots? Do you have any questions about the process for any of the desktop environments? Let us know in the comments below.