Ubuntu

How to Manage Startup Programs on Ubuntu 20.04

How to Manage Startup Programs on Ubuntu 20.04

Whenever you login to your operating system, a lot of applications start running automatically. These applications are known as startup applications. Startup applications can save you a lot of hassle if you utilize them often, as you do not have to spend time searching and manually launching them. However, having too many applications on startup can cause your system longer to boot. Therefore, it is better to add only those programs on Startup programs that you need to start up right away and remove the default ones which you might not necessarily need at system boot. You can also choose to automatically start your programs at system boot with a little delay.

In this post, we will be looking at how to manage startup programs on Ubuntu OS. We will be covering:

  • Add a program in the Startup programs
  • Launch Startup programs with a delay
  • Remove a program from Startup programs

Ubuntu ships with a Gnome Startup Applications Utility which allows managing the Startup programs in Ubuntu. To launch the Startup Applications utility, click Activities at the top left corner of your desktop. Then type startup app in the search box that appears at the top. From the search result, click the Startup Applications icon (as shown in the below screenshot) to open the utility.

Alternatively, you can also search for Startup Applications by pressing the Alt+F2 and running the below command in the Pop-up command window.

$ gnome-session-properties

When the Startup Applications utility launches, you will see a list of startup programs that automatically starts when the system boots.

In case, you do not find the Startup Applications utility in your system due to any reason, you can install it using the below command in the Terminal:

$ sudo apt install gnome-startup-applications

Enter sudo password and wait for the installation to be completed. After that, you can launch it as described above.

Add a Program in the Startup Programs

To add a program in the Startup programs list, click Add button in the Startup Applications Preferences window as shown below.

It will open the Add Startup Program dialog box. Here, add the name of the program in the Name field that you want to start automatically when the system turns on. Then in the Command field, add the full path of the program. To find the full path of the program, use the which command. In the Comment field, you can add any short description of the program. Both the Name and Comment fields are optional and these are added just to identify the programs.

Let’s say you want the Thunderbird program to automatically start at login. For this, you will need to add name and comment in their particular fields. Then in the Command field, you will first have to find the full path of the Thunderbird program which can be found using the below command:

$ which thunderbird

The output will return you the path of the Thunderbird program. Add this path in the Command filed. Once you are done, click Add button to add Thunderbird to the Startup Programs list.

Now you will see Thunderbird in the list of Startup Applications. Now the Thunderbird program will start automatically at login.

Click Close to close the above window.

Launch Startup Programs with a Delay

Sometimes, you want to start programs automatically when you login to your system, but with a little delay. Like if, there are a number of programs in Startup applications and you do not want all of them to start at once with the system boot because they would slow down the boot process. In that case, you can launch some of your startup programs with a delay.

Let’s say you want to start the Thunderbird program with a delay of 30 seconds. For this, select the program in the Startup Applications Preferences window and click the Edit button.

Then in the Command field, add sleep 30; before the path of the program like this:

sleep 30; /usr/bin/thunderbird

Then click the Save button.

This will make the Thunderbird application to start with a delay of 30 seconds. Click Close to close the above window.

Remove a Program from Startup programs

You can also remove a program from Startup programs if you do not want to start it automatically on system boot. Let’s say you do not want the Thunderbird program to start automatically when your system boots up. For this, launch the Startup Applications utility, then select the Thunderbird program from the list, and click the Remove button.

Click Close to close the above window.

In this post, we covered how to add programs to the Startup programs, launch the startup programs with a delay, and how to remove the programs from the Startup programs. I hope you will find this post helpful whenever you need to manage your startup programs in Ubuntu OS.

Similar Posts