ValveSoftware / steam-for-linux

Issue tracking for the Steam for Linux beta client
4.26k stars 175 forks source link

Installing dependency (proton/runtime) make useless shortcut appear #10306

Open Renarde-dev opened 11 months ago

Renarde-dev commented 11 months ago

Your system information

Please describe your issue in as much detail as possible:

When installing games that have a dependency to proton or a runtime, a shortcut will appear in Gnome. This shortcut is useless as it doesn't launch anything and get in the way of the search tool. The desktop file is located in ~/.local/share/applications/SteamXXXX , simply adding a NoDisplay=true in the generated desktop file would solve the issue as the desktop file would still exist if needed by steam but it will not appear in the gnome launcher

Steps for reproducing this issue:

  1. Install any game that has a dependency to proton or a steam runtime
  2. A shortcut to the dependency that doesn't launch anything ( because it's a dependency ) appear on the desktop
smcv commented 1 month ago

I can reproduce this (and it isn't distro-specific, I can reproduce it on Ubuntu and others have seen it on Arch). Attempting to launch the shortcuts produces a confusing error message "An error occurred while launching this game: Invalid game configuration" (see https://github.com/ValveSoftware/steam-runtime/issues/691).

A factor that makes this worse is that compatibility tools don't have their own icon, so the icon used for the shortcut defaults to the Steam icon, which makes it easy to confuse them with the correct shortcut for Steam itself - particularly on Arch, where the main Steam shortcut is named "Steam (Runtime)" as a result of Arch-specific changes.

Steam presumably already has a concept of tools that are or aren't launchable, because it can display "Invalid game configuration" if you attempt to launch the ones that are not intended to be launchable.

simply adding a NoDisplay=true in the generated desktop file would solve the issue as the desktop file would still exist if needed by steam but it will not appear in the gnome launcher

I'm reasonably sure that Steam doesn't actually need the .desktop file for anything (it's optional to create it during installation), so it would be better if it would avoid generating a .desktop file at all for non-launchable tools.