protonscr

[BUG] SteamVR creates URI handler .desktop files as visible applications that show up in app menus

steamvrclosed
ValveSoftware/SteamVR-for-Linux#456 · opened 2021-08-02 by enveeed · updated 2021-08-02 · 1 comments · github
Eenveeed 2021-08-02 github

Please describe your issue in as much detail as possible:

When installing SteamVR it will generate a few .desktop files in .local/share/applications, two for URI handlers and and one for the VR monitor application.

The VR monitor shows up as an application in an app menu (e.g. in GNOME or any other desktop environment with an application menu) like it is intended to, however the URI handlers do as well:

vr

I don't think this is intended behavior as URI and MIME type handlers added by other applications do not show up in the menu either (and the URI handlers are of no use if opened without an URI in the app menu).

The desktop entry specification contains a specific key for purposes like this which other applications make use of:

NoDisplay means "this application exists, but don't display it in the menus".

https://specifications.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html

So this problem can be fixed by changing both valve-URI-steamvr.desktop and valve-URI-vrmonitor.desktop:

+ NoDisplay=true

Intended functionality is preserved as far as I tested.

Steps for reproducing this issue:

  1. Install SteamVR using Steam
  2. Check your favorite applications menu in your desktop environment
  3. The SteamVR URI handlers will show up as applications.
Kkisak-valve maintainer 2021-08-02 github

Hello @enveeed, this issue is already being tracked at https://github.com/ValveSoftware/steam-for-linux/issues/7798. Closing as a duplicate.