How to Add Custom Startup Program in Ubuntu 26.04

Last updated: April 29, 2026 — Leave a comment

Ubuntu 26.04 does no longer have the “Startup Applications” utility! Here are alternative ways to add startup programs, scripts, or commands that run automatically at login.

As you may know, the default Gnome Desktop (since v49) added the feature to enable auto-start applications by using toggle options in Settings -> Apps.

It’s great for beginners, but, what if you want to auto-start app with custom options, or auto-run custom commands/scripts at login?

Autostart apps via Ubuntu Settings

Here I’m going to show you 2 alternatives to do the job in Ubuntu 26.04:

  • Add startup app manually using .desktop configuration file.
  • Use a third-party graphical configuration tool.

Option 1: Use .desktop configuration file

As you may know, all the app icons you see in Gnome app grid, dock, or other app launchers in most popular Linux distributions are handled by .desktop files under /usr/share/applications, .local/share/applications, etc directories.

Similarly, auto-start apps are handled by the .desktop files under either /etc/xdg/autostart or .config/autostart directories.

And, when you turn on “Autostart” toggle switch for an application in Settings (Gnome Control Center), it will automatically create a file under .config/autostart linked to the .desktop file for that app icon.

If you want to auto-run custom commands, scripts, or apps with custom options at login, then just create .desktop files in that directory with following steps.

1. Create the directory. The ~/.config/autostart directory does not exist out-of-the-box. You may either open “Files” and press Ctrl+H to view hidden files/folders, then navigate to .config and create autostart subfolder, or open terminal (Ctrl+Alt+T) and run command below to create:

mkdir -p ~/.config/autostart

2. Create & edit custom .desktop file. Next, go to that “autostart” folder and create a document then rename to xxx.desktop , “firefox-private.desktop” for example, and click edit via text editor:

Tips: Ubuntu (Gnome indeed) does not have “New Document” context menu option, see this tutorial to enable it.

When file opens, write following content and edit accordingly:

[Desktop Entry]
Type=Application
Exec=sh -c "sleep 30; firefox --private-window https://www.google.com"
Hidden=false
Name=Firefox Private Mode
Comment=Open google.com automatically in Firefox private window.

In the case, it will auto-launch Firefox in private mode and open Google.com automatically, with 30 seconds delay after login.

According what you want to run, you need to replace the command for “Exec“, and edit the ‘Name’ and ‘Comment’ as you want. For example, use:

  • Exec=/home/ji/Documents/myscript to run my script under user Documents directory.
  • Exec=sh -c "$HOME/Documents/myscript" to run the same script, but here “sh -c” command interpreter is required so it knows what is $HOME.
  • Exec=update-manager --install-all to auto-launch Software Updater and install all available updates.

Tips:

  • It’s better to first run the custom command or script in terminal to make sure it works.
  • The X-GNOME-Autostart-Delay parameter does not work in Wayland, use sleep in command to add time delay in seconds.
  • You may change Hidden=false to Hidden=true to disable that .desktop file, just like it’s deleted.
  • Add Terminal=true if the command need to run in a terminal.
  • For more about the desktop entry keys, see the doc in freedesktop.org.

After created and edited the file, just save it, and verify if it works by logging out and back in.

Option 2: Use a third-party graphical application

To make things simple, there are few third-party graphical tools can do the job managing startup apps and scripts.

As far as I know, the free open-source Ignition tool is a good choice which provides a simple and modern user interface to add, remove, and modify startup entries.

As you see in the screenshot, it provides a GTK4 and LibAdwaita interface, with ability to manage system startup entries (usually the .desktop files in /etc/xdg/autostart) that works for all users.

As well, it allows to add any installed apps (with custom options and time delay), custom command or script as auto-start items, by automatically creating .desktop files in user’s .config/autostart directory. Meaning they work for current user only.

Install Ignition

Besides building from the source, the app is available to install in most Linux through Flatpak package, which runs in sandbox environment.

For Debian, Ubuntu, and their based systems, run 2 commands below one by one to install the package:

  • First, open terminal (Ctrl+Alt+T) and enable Flatpak support by installing the daemon package:
    sudo apt install flatpak
  • Next, install the app package by running command:
    flatpak install https://dl.flathub.org/repo/appstream/io.github.flattool.Ignition.flatpakref

After installed the package, either search for and launch it from Gnome Overview (log out and back in if app icon is not visible), or run command below to start from terminal:

flatpak run io.github.flattool.Ignition

Uninstall Ignition

If the app does not work good for you, run the command below to uninstall it:

flatpak uninstall --delete-data io.github.flattool.Ignition

Also run flatpak uninstall --unused to remove useless runtime libraries.

NOTE that uninstall the app won’t delete the auto-start entries created by it.

I'm a freelance blogger who started using Ubuntu in 2007 and wishes to share my experiences and some useful tips with Ubuntu beginners and lovers. Please comment to let me know if the tutorial is outdated! And, notify me if you find any typo/grammar/language mistakes. English is not my native language. Buy me a coffee: https://ko-fi.com/ubuntuhandbook1 |

No Comments

Be the first to start the conversation.

Leave a Reply

Text formatting is available via select HTML.

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> 

*