Steam: Difference between revisions

m add -steamdeck to steam launch options for improved experience
Ardenet (talk | contribs)
Marked this version for translation
Tags: Mobile edit Mobile web edit
 
(3 intermediate revisions by 3 users not shown)
Line 76: Line 76:
   dedicatedServer.openFirewall = true; # For Source Dedicated Server hosting
   dedicatedServer.openFirewall = true; # For Source Dedicated Server hosting
   # Other general flags if available can be set here.
   # Other general flags if available can be set here.
  # Tip: For improved gaming performance, you can also enable GameMode:
  # programs.gamemode.enable = true;
};
};
# Tip: For improved gaming performance, you can also enable GameMode:
# programs.gamemode.enable = true;
</syntaxhighlight>
</syntaxhighlight>
<translate>
<translate>
Line 101: Line 101:
# Clean Quiet Boot
# Clean Quiet Boot
boot.kernelParams = [ "quiet" "splash" "console=/dev/null" ];
boot.kernelParams = [ "quiet" "splash" "console=/dev/null" ];
plymouth.enable = true;
boot.plymouth.enable = true;


programs.gamescope = {
programs.gamescope = {
Line 246: Line 246:
</syntaxhighlight>
</syntaxhighlight>


<translate>
=== Fix missing icons for games in GNOME dock and activities overview === <!--T:56-->
</translate>
<translate>
<!--T:57-->
GNOME uses the window class to determine the icon associated with a window. Steam currently doesn't set the required key for this in its .desktop files<ref>https://github.com/ValveSoftware/steam-for-linux/issues/12207</ref>, but you can fix this manually by editing the <code>StartupWMClass</code> key for each game's .desktop file, found under <code>~/.local/share/applications/</code>.
<!--T:58-->
For games running through Proton, the value should be <code>steam_app_<game_id></code> (where <code><game_id></code> matches the value after steam://rungameid/ on the <code>Exec</code> line).
<!--T:59-->
For games running natively, the value should match the game's main executable.
<!--T:60-->
For example, the modified .desktop file for Valheim looks like this:
</translate>
<syntaxhighlight lang="desktop">
[Desktop Entry]
Name=Valheim
Comment=Play this game on Steam
Exec=steam steam://rungameid/892970
Icon=steam_icon_892970
Terminal=false
Type=Application
Categories=Game;
StartupWMClass=valheim.x86_64
</syntaxhighlight>
<translate>
<translate>
== Troubleshooting == <!--T:31-->
== Troubleshooting == <!--T:31-->