Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Renarde-dev opened this issue Dec 19, 2023 · 1 comment
Open

Comments

@Renarde-dev
Copy link

Your system information

  • Steam client version (build number or date): 1702079146
  • Distribution (e.g. Ubuntu): Fedora 39
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes
  • Installed via : DNF ( Native package )

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
Copy link
Contributor

smcv commented Sep 24, 2024

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 ValveSoftware/steam-runtime#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants