steam: Add support for the custom Steam URI handler in Flatpak
1 unresolved thread
1 unresolved thread
Do not report as an issue if the Flatpak version of Steam is the default URI handler.
Also handle the special URI case when s-r-s-i is executed from inside a Flatpak environment.
/cc @smcv
Merge request reports
Activity
485 issues |= SRT_STEAM_ISSUES_MISSING_STEAM_URI_HANDLER; 486 GList *desktop_entries = _srt_list_steam_desktop_entries (); 487 /* If we are running from the Flatpak version of Steam we can't tell 488 * which one is the default `steam` URI handler. 489 * So we just list them all and check if we have the known 490 * "com.valvesoftware.Steam.desktop" that is used in the Flathub's 491 * version of Steam */ 492 for (GList *iter = desktop_entries; iter != NULL; iter = iter->next) 493 { 494 if (g_strcmp0 (srt_desktop_entry_get_id (iter->data), "com.valvesoftware.Steam.desktop") != 0) 495 continue; 496 497 /* If we have the desktop entry "com.valvesoftware.Steam.desktop" 498 * with a commandline that starts with "/app/bin/" we are fairly 499 * sure to be inside a Flatpak environment. Otherwise report the 500 * issues about the missing and unexpected Steam URI handler */ mentioned in commit 89a8234a
Please register or sign in to reply