Never return to the OpenGamepadUI session when switching to Steam (v0.1.2)

A return file pointing at gamescope-session-opengamepadui is a stale
self-reference: os-session-select writes the current autologin session to the
return file on every switch, and once an exclusive OGPU session is active that
session is OpenGamepadUI itself. Returning to it bounces straight back instead
of landing in Steam, so drop it from the valid return sessions.
This commit is contained in:
Jose Falanga 2026-08-09 15:43:35 -03:00
parent c11585e79c
commit ff63dfad65
2 changed files with 6 additions and 3 deletions

View file

@ -19,11 +19,14 @@ const RETURN_SESSION_FILE := "/.config/chimeraos-session-return"
const DEFAULT_RETURN_SESSION := "gamescope-session-steam-plus" const DEFAULT_RETURN_SESSION := "gamescope-session-steam-plus"
# Sessions os-session-select can be told to return to (matching the values it # Sessions os-session-select can be told to return to (matching the values it
# writes to the return-session file). # writes to the return-session file). Returning to the OpenGamepadUI session is
# deliberately excluded: this plugin only runs inside OpenGamepadUI, so a return
# file pointing at it is a stale self-reference (the last os-session-select run
# recorded whatever session autologin was set to, which is OpenGamepadUI itself
# once an exclusive OGPU session is active) and would just bounce back here.
const RETURN_SESSIONS := [ const RETURN_SESSIONS := [
"gamescope-session-steam-plus", "gamescope-session-steam-plus",
"gamescope-session-steam", "gamescope-session-steam",
"gamescope-session-opengamepadui",
] ]

View file

@ -1,7 +1,7 @@
{ {
"plugin.id": "session-switch", "plugin.id": "session-switch",
"plugin.name": "Session Switch", "plugin.name": "Session Switch",
"plugin.version": "0.1.1", "plugin.version": "0.1.2",
"plugin.min-api-version": "1.1.0", "plugin.min-api-version": "1.1.0",
"plugin.link": "https://forge.thergic.ar/jose/steam-button-opengamepadui-plugin", "plugin.link": "https://forge.thergic.ar/jose/steam-button-opengamepadui-plugin",
"plugin.source": "https://forge.thergic.ar/jose/steam-button-opengamepadui-plugin", "plugin.source": "https://forge.thergic.ar/jose/steam-button-opengamepadui-plugin",