From ff63dfad658b64b4848d8b8e4c8b205a038fd6df Mon Sep 17 00:00:00 2001 From: Jose Falanga Date: Sun, 9 Aug 2026 15:43:35 -0300 Subject: [PATCH] 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. --- plugin.gd | 7 +++++-- plugin.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/plugin.gd b/plugin.gd index d8f87e1..e8de1fa 100644 --- a/plugin.gd +++ b/plugin.gd @@ -19,11 +19,14 @@ const RETURN_SESSION_FILE := "/.config/chimeraos-session-return" const DEFAULT_RETURN_SESSION := "gamescope-session-steam-plus" # 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 := [ "gamescope-session-steam-plus", "gamescope-session-steam", - "gamescope-session-opengamepadui", ] diff --git a/plugin.json b/plugin.json index ea084d4..6a02a72 100644 --- a/plugin.json +++ b/plugin.json @@ -1,7 +1,7 @@ { "plugin.id": "session-switch", "plugin.name": "Session Switch", - "plugin.version": "0.1.1", + "plugin.version": "0.1.2", "plugin.min-api-version": "1.1.0", "plugin.link": "https://forge.thergic.ar/jose/steam-button-opengamepadui-plugin", "plugin.source": "https://forge.thergic.ar/jose/steam-button-opengamepadui-plugin",