Steam Iconify to tray

There was a thread here with a good terminal one liner to get steam to “Iconify” to tray when Closed/Minimised.

It modify’s a line in the /usr/bin/steam file from:
export STEAM_FRAME_FORCE_CLOSE=0 to: export STEAM_FRAME_FORCE_CLOSE=1

Every time manjaro applications update it resets that file to its =0 state.

I was hoping someone here remembers the command used and could share that with me

Cheers

You can do that with the .desktop file of steam and copy it to your ~/.local/share/applications/ and change the Exec= line … Never again will be changed when updating.

2 Likes

change the Exec=/usr/bin/steam to another file with the the commands set to STEAM_FRAME_FORCE_CLOSE=1 ?

does the new file need to be special at all ? or can it be just a text file.

Just copy the /usr/lib/steam/steam.desktop file and change it …

change it to what, could you be more specific please

cp /usr/lib/steam/steam.desktop ~/.local/share/applications/steam.desktop
gedit ~/.local/share/applications/steam.desktop

and change the line:
Exec=steam
to
Exec=export STEAM_FRAME_FORCE_CLOSE=1 steam

1 Like

this causes error:

Failed to execute child process “export” (No such file or directory)

its the steam U% file in /usr/bin/ that the Exec= points to that needs modifying

remove ‘export’

Here is mine I customized a while back:

[Desktop Entry]
Name=Steam
Comment=Application for managing and playing games on Steam
Comment[fr]=Application de gestion et d'utilisation des jeux sur Steam
Exec=STEAM_FRAME_FORCE_CLOSE=1 /usr/bin/steam %U
Icon=steam
Terminal=false
Type=Application
Categories=Network;FileTransfer;Game;
MimeType=x-scheme-handler/steam;
Actions=KF2;DRG;_SEPARATOR_;Library;Friends;Servers;Settings;_SEPARATOR_;EXIT;_SEPARATOR_;

[Desktop Action KF2]
Name=Killing Floor 2
Exec=steam steam://run/232090

[Desktop Action DRG]
Name=Deep Rock Galactic
Exec=steam steam://run/548430

[Desktop Action Library]
Name=Library
Name[fr]=Bibliothèque
Exec=steam steam://open/games

[Desktop Action Friends]
Name=Friends
Name[fr]=Amis
Exec=steam steam://open/friends

[Desktop Action Servers]
Name=Servers
Name[fr]=Serveurs
Exec=steam steam://open/servers

[Desktop Action Settings]
Name=Settings
Name[fr]=Paramètres
Exec=steam steam://open/settings

[Desktop Action EXIT]
Name=Exit
Name[fr]=Quitter
Exec=steam -exitsteam

I pinned it to the taskbar so I have my custom menu when I right click it.

1 Like

since i don’t use stem i can’t check, but see above the comment from @omano :slight_smile:

yeah still does the same thing, if STEAM_FRAME_FORCE_CLOSE=1 is in-front of /usr/bin/steam %U it will:
Failed to execute child process “STEAM_FRAME_FORCE_CLOSE=1” (No such file or directory)
if STEAM_FRAME_FORCE_CLOSE=1 is behind /usr/bin/steam %U it has no effect(steam doesn’t iconify) but steam will still launch.

the modification needs to be made to a line in the steam %U file which needs root permission.

STEAM_FRAME_FORCE_CLOSE=0 seems to be the default for desktops without a taskbar but xfce has one & i don’t know why that is the default.

I use this desktop file for very long time and it works, I close my Steam windows and only have the tray icon, you’re doing something wrong I assume. File is placed at ~/.local/share/applications/steam.desktop

thats exactly where it is, i get that launch error
I see your using KDE, i assume its a xfce problem, xfce is what i use

As already said above, modify the file ~/.local/share/applications/steam.desktop and try replacing the line beginning with Exec with this one:

Exec=env STEAM_FRAME_FORCE_CLOSE=1 /usr/bin/steam %U

I’m also not using Steam, so I can’t check if that will work for you.

3 Likes

Cheers that worked perfectly

1 Like

So there is a difference between KDE and XFCE that requires a difference in the exec line to achieve the same thing? if someone knows why is that please share some light about this :slight_smile:

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