The purpose of this tutorial is to show how to configure one or more applications to start up automatically upon system boot in Ubuntu 22.04 Jammy Jellyfish, specifically on the GNOME desktop environment. Follow our step by step instructions below as we set an application to autostart.
In this tutorial you will learn:
- How to install
- How to automatically start application after user login in Ubuntu 22.04
|Category||Requirements, Conventions or Software Version Used|
|System||Ubuntu 22.04 Jammy Jellyfish|
|Software||GNOME desktop environment|
|Other||Privileged access to your Linux system as root or via the
# – requires given linux commands to be executed with root privileges either directly as a root user or by use of
$ – requires given linux commands to be executed as a regular non-privileged user
How to autostart applications on Ubuntu 22.04 step by step instructions
- The first step is to open a command line terminal and install the
gnome-startup-applications, in case your Ubuntu 22.04 system does not already have it. Execute the following commands in terminal:
$ sudo apt update $ sudo apt install gnome-startup-applications
- Next, open up the
Activitiesmenu from the upper left corner of your screen and search for the
- Hit the
Addbutton to add a new application to the autostart list.
- In this step you will need to enter the full path to the application’s binary executable of the application you wish to automatically start after user login. You may use the
whichLinux command to locate the full path of the application. For example we can locate the full path of the Firefox browser or Gnome terminal by executing:
$ which firefox /usr/bin/firefox $ which gnome-terminal /usr/bin/gnome-terminal
- Now that we know the path to the executable, Enter any
Comment. Include the full path to the application within the
Commandfield and hit
Addwhen you are done.
From now on every time you log in into your Ubuntu system the selected application will start automatically.
In this tutorial, we saw how to configure an application to start automatically upon system boot on the GNOME desktop environment in Ubuntu 22.04 Jammy Jellyfish Linux. If you need to remove the configuration down the road, simply open the startup applications menu again and delete the desired application from the list.