Setting up startup applications

Im trying to add start up programs at launch but it only allows steam or discord, I cant seem to have both in the list. Im using main menu to get the locations/command of each programs like steam is "/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=/app/bin/steam --file-forwarding com.valvesoftware.Steam @@u %U @@" and then i do same for discord however only steam will launch or if i redo then only discord will launch and other is deleted. Im not sure if im doing it right.

Hey Frostbyte:

The command you copied:

...--file-forwarding com.valvesoftware.Steam @@u %U @@

is designed for opening files or URLs passed from a browser. For a simple startup, the OS only needs to know "Run this app."

Using the shortened version:

flatpak run com.valvesoftware.Steam

is much cleaner and less likely to cause errors in the startup config files.

More specifically:

Instead of trying to edit one entry to fit both, ensure you are creating two separate items.

Open Startup Applications from your menu.

Click Add.

For Steam:

Name: Steam

Command: /usr/bin/flatpak run com.valvesoftware.Steam (You don't need the extra flags like @@u %U for a simple startup).

Comment: Launch Steam on boot

Click Add.

Click Add again (a brand new window).

For Discord:

Name: Discord

Command: /usr/bin/flatpak run com.discordapp.Discord

Comment: Launch Discord on boot

Click Add.

I messed up the commands but I am adding them seperate. However it will only save 1 of the 2 commands and new one deletes the other i cant have both in the startup application preferences at same time

heres what happens when i add the other, close out and reopen

After hearing about Discord's 'recent' user data leak I avoid it like the plague.
I only signed up to try to get a now defunct Windows/PS4 game running on Steam.

Oh yeah im out when the ids etc come tho issue i cant add 2 programs to auto start, unless theres some limit where only 5 items can be in list, tho i didnt try other programs yet was working on one thing at time setting zorin up. I guess I could try to see if i can add anything else or i hit some limit.

There is no technical limit to how may items you can add to Startup Applications.

But this is somewhat strange behavior—it sounds like the utility is treating both entries as the same "Flatpak" object because they share the same starting path.

Let's create two small "Desktop" files in your hidden startup folder. This forces the system to recognize them as two distinct tasks.

Open your Terminal.

Copy and paste this command to create the Steam entry:

cat < ~/.config/autostart/steam-custom.desktop
[Desktop Entry]
Type=Application
Name=Steam Startup
Exec=flatpak run com.valvesoftware.Steam -silent
X-GNOME-Autostart-enabled=true
EOF

Next, copy and paste this command to create the Discord entry:

cat < ~/.config/autostart/discord-custom.desktop
[Desktop Entry]
Type=Application
Name=Discord Startup
Exec=flatpak run com.discordapp.Discord --start-minimized
X-GNOME-Autostart-enabled=true
EOF

(This will cause Linux to look into the folder ~/.config/autostart/ to decide what to launch.

By naming the files steam-custom.desktop and discord-custom.desktop, we ensure they have unique filenames.

The GUI tool you were using likely kept trying to save both as something generic like flatpak.desktop, causing the second one to overwrite the first.)

Log out, and back in.

Open Startup Applications. You should now see two separate entries named Steam Startup and Discord Startup with checkboxes next to them.

Before I do second one, heres what the first one did, i see bunch of not founds so double checking make sure it went ok, I installed both discord and steam with the software app tool unless it does something different via installing vs terminal

ah, I believe I see what happened. Use this command instead:

echo -e "[Desktop Entry]\nType=Application\nName=Steam\nExec=flatpak run com.valvesoftware.Steam -silent\nX-GNOME-Autostart-enabled=true" > ~/.config/autostart/steam-custom.desktop

then for Discord, run:

echo -e "[Desktop Entry]\nType=Application\nName=Discord\nExec=flatpak run com.discordapp.Discord --start-minimized\nX-GNOME-Autostart-enabled=true" > ~/.config/autostart/discord-custom.desktop

You use the flatpaks of both. Maybe try it with the .deb Versions. Steam is available in the Repos. So, You could install it with sudo apt install steam or choose in Gnome Software the APT Package instead of the Flatpak. Or if You should prefer to have it from the Source, You can download it from Steam directly:

And Discord, You can download from their Website, too:

Choose the .deb File.

Ok i ran both of those commands in terminal and no errors so thats all i need to do? And ah ok to flatpak, i did try linux for short time before i think it was mint or cachyos i dont remember its been while and all i had to do was click the program icons to add to startup and it was done i didnt have to do commands before

So are things satisfactory now?


yup sweet, thanknkyou i need to save those commands in my txt file cheat sheet

1 Like

If you like, you can install gnome tweaks to manage startup applications easily. There you can select the apps which you want to add to autostart.

sudo apt install gnome-tweaks

awesome ill write that down too thanks.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.