From d4bb4c4d92aedab0467969d71309408bba231aac Mon Sep 17 00:00:00 2001 From: rickpeters Date: Tue, 13 Oct 2026 19:09:28 +0200 Subject: [PATCH] fix: the conversion removes single user mode's desktop autologin, which pinned the Plasma session Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01KkpbsMw4rQyBsxDG6ebHK2 --- CHANGELOG.md | 2 ++ lib/login-manager.sh | 4 ++++ lib/single-user.sh | 9 +++++++++ 3 files changed, 15 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f088212..c740638 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ one per merged pull request. ## 2.11.2 - 2026-10-13 +- **fix: on an NVIDIA PC that had single user mode on before the SteamOS conversion, "Return to Gaming Mode" and the boot choice work again: single user mode's desktop autologin (`zzz-steamify-autologin.conf`, read last) pinned the Plasma session; the conversion removes it, and turning the conversion off sets it up again** + - **fix: when an option fails, its sub-options are not applied any more (a failed conversion used to leave its "Boot into the desktop", silent start and icons on without it)** - **fix: a PC that keeps `python-hidapi` (liquidctl needs it) can use the SteamOS conversion: jupiter-hw-support, which gamescope-session-cachyos depends on, wants `python-hid`, which conflicts with it and stopped the package install. Steamify builds and installs an empty placeholder package that provides `python-hid` first (`patches/python-hid-shim.PKGBUILD`); only the Steam Deck controller firmware updater uses it** diff --git a/lib/login-manager.sh b/lib/login-manager.sh index 2781f71..c8ec2a1 100644 --- a/lib/login-manager.sh +++ b/lib/login-manager.sh @@ -109,6 +109,8 @@ gaming_enable() { install_session_sync ;; esac + # (NVIDIA with single user mode from before the conversion: its desktop autologin would pin the Plasma session.) + single_login_release create_desktop_shortcut steam_enable os_name_enable || return 1 @@ -127,6 +129,8 @@ gaming_disable() { gsn_disable krevert gaming os_name_disable + # NVIDIA with single user mode still on: nothing else logs in by itself any more. + nvidia_present && single_status && single_login_enable ok "The PC boots to the normal login screen again (from the next boot)." } diff --git a/lib/single-user.sh b/lib/single-user.sh index 2adc95c..6087cc8 100644 --- a/lib/single-user.sh +++ b/lib/single-user.sh @@ -140,6 +140,15 @@ EOF remove_sddm_base_autologin } +single_login_release() { + # The SteamOS conversion logs in by itself, and picks the session (gamescope, or the desktop with "Boot into"): the + # desktop autologin above, which sorts last, would pin the Plasma session and "Return to Gaming Mode" would open KDE + # again. Called when the conversion is turned on; turning it off sets it up again (gaming_disable). + [[ -f "$SINGLE_AUTOLOGIN" ]] || return 0 + info "The SteamOS conversion logs in by itself: removing the desktop autologin of single user mode." + sudo rm -f "$SINGLE_AUTOLOGIN" +} + single_login_disable() { [[ -f "$SINGLE_AUTOLOGIN" ]] || return 0 sudo rm -f "$SINGLE_AUTOLOGIN"