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
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.
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
and change the line:
Exec=export STEAM_FRAME_FORCE_CLOSE=1 steam
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
Here is mine I customized a while back:
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
[Desktop Action KF2]
Name=Killing Floor 2
[Desktop Action DRG]
Name=Deep Rock Galactic
[Desktop Action Library]
[Desktop Action Friends]
[Desktop Action Servers]
[Desktop Action Settings]
[Desktop Action EXIT]
I pinned it to the taskbar so I have my custom menu when I right click it.
since i don’t use stem i can’t check, but see above the comment from @omano
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.
Cheers that worked perfectly
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
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.