From c1c1027f3664db21397a7175465f31777b591504 Mon Sep 17 00:00:00 2001 From: tranch Date: Sun, 13 Sep 2026 13:57:32 +0800 Subject: Fix Return to Gaming Mode desktop launcher Use the current Bazzite script entry point instead of the legacy privileged systemd service, which is absent from current images. --- build_files/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build_files/build.sh b/build_files/build.sh index 9e13cfd..40b9efd 100755 --- a/build_files/build.sh +++ b/build_files/build.sh @@ -14,6 +14,15 @@ esac # Copy the contents of system_files/ of the git repo to / cp -avf "/ctx/system_files"/. / +# Bazzite's Kinoite/Plasma desktop shortcut used to start a privileged +# return-to-gamemode.service. Current Bazzite invokes the user-session entry +# point directly; keep the shortcut correct when the base image still ships +# the legacy Exec= line. +RETURN_TO_GAMING_DESKTOP="/etc/skel/Desktop/Return.desktop" +if [[ -f "${RETURN_TO_GAMING_DESKTOP}" ]]; then + sed -i 's|^Exec=.*|Exec=/usr/bin/return-to-gamemode|' "${RETURN_TO_GAMING_DESKTOP}" +fi + # ujust loads explicit imports, not every fragment in the just/ directory. # Preserve upstream recipes and register our overlay after copying its files. AEROCORE_DECKY_IMPORT='import "/usr/share/ublue-os/just/92-aerocore-decky-mirror.just"' -- cgit v1.2.3