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

Game window names do not match desktop entry file names #11012

Open
Dannflower opened this issue Jun 23, 2024 · 0 comments
Open

Game window names do not match desktop entry file names #11012

Dannflower opened this issue Jun 23, 2024 · 0 comments

Comments

@Dannflower
Copy link

Dannflower commented Jun 23, 2024

Your system information

  • Steam client version (build number or date): 1718904662
  • Distribution (e.g. Ubuntu): Ubuntu 24.04
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes
  • GPU: Nvidia GTX 1080

Please describe your issue in as much detail as possible:

When installing a game via Steam, a new desktop entry (.desktop file) gets created in ~/.local/share/applications that is named the same as the game that was just installed. However, when running a game via Steam the window appears to be named using the app's Steam ID, i.e. steam_app_<game_id>. This causes the game's window icon in the Gnome dock to show the generic gear icon.

The desktop entry is configured correctly to show the game's icon as this is how it shows up in Gnome's "Show Apps" view:

Screenshot from 2024-06-23 15-51-38

For ZeroRanger, the .desktop file is named ZeroRanger.desktop and the contents of the desktop entry are as follows:

[Desktop Entry]
Name=ZeroRanger
Comment=Play this game on Steam
Exec=steam steam://rungameid/809020
Icon=steam_icon_809020
Terminal=false
Type=Application
Categories=Game;

When the game is running, it's window shows up in the Gnome dock like this:

Screenshot from 2024-06-23 15-39-02

As a workaround, you can either:

  • Add the StartupWMClass=steam_app_<app_id> property to the end of the .desktop file (for ZeroRanger it would be StartupWMClass=steam_app_809020).

  • Rename the .desktop file itself to match the name of the window (for ZeroRanger it becomes steam_app_809020.desktop).

Either of these then cause the window to show the correct icon/name in the dock.

Screenshot from 2024-06-23 15-56-46

Hopefully there's a way for Steam to handle this itself when creating the desktop icons.

Steps for reproducing this issue:

  1. Install a game via Steam.
  2. Launch the installed game.
  3. Notice it uses the default gear icon for its window in the Gnome dock.
@Dannflower Dannflower changed the title Game window names do not match desktop entry names Game window names do not match desktop entry file names Jun 23, 2024
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

2 participants