summaryrefslogtreecommitdiff
path: root/build_files
diff options
context:
space:
mode:
authortranch <tranch.xiao@gmail.com>2026-09-13 13:57:32 +0800
committertranch <tranch.xiao@gmail.com>2026-09-13 13:57:32 +0800
commitc1c1027f3664db21397a7175465f31777b591504 (patch)
tree06c6d3e7788d7b2ad5ddd0565e2651c0c8d9d151 /build_files
parent115f7475e2716410fa5603114d3ec8c3211b9ca3 (diff)
downloadAeroCore-OS-c1c1027f3664db21397a7175465f31777b591504.tar.gz
AeroCore-OS-c1c1027f3664db21397a7175465f31777b591504.zip
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.
Diffstat (limited to 'build_files')
-rwxr-xr-xbuild_files/build.sh9
1 files changed, 9 insertions, 0 deletions
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"'