summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortranch <tranch.xiao@gmail.com>2026-09-13 19:16:12 +0800
committertranch <tranch.xiao@gmail.com>2026-09-13 19:16:12 +0800
commitd734f2c746632772b794143762f2fcea78e62011 (patch)
tree06c6d3e7788d7b2ad5ddd0565e2651c0c8d9d151
parent47ede79dece8e8e04f8105c8f2ef9c8883d9c738 (diff)
downloadAeroCore-OS-d734f2c746632772b794143762f2fcea78e62011.tar.gz
AeroCore-OS-d734f2c746632772b794143762f2fcea78e62011.zip
Revert "Migrate legacy gaming mode shortcut"
This reverts commit 9f1490f28db8643e78cd26e3cd8f0c92909f16a2.
-rwxr-xr-xbuild_files/patch-bazzite-deck-identity.sh24
-rwxr-xr-xtests/test-patch-bazzite-deck-identity.sh2
2 files changed, 0 insertions, 26 deletions
diff --git a/build_files/patch-bazzite-deck-identity.sh b/build_files/patch-bazzite-deck-identity.sh
index da2a74e..d3ee860 100755
--- a/build_files/patch-bazzite-deck-identity.sh
+++ b/build_files/patch-bazzite-deck-identity.sh
@@ -158,29 +158,6 @@ patch_desktop_branding_migration() {
fi
}
-patch_gamemode_shortcut_migration() {
- local file="$1"
- local marker='AeroCore Return to Gaming Mode shortcut migration'
-
- if [[ ! -f "$file" ]]; then
- echo "Unable to locate expected Bazzite user setup file: $file" >&2
- exit 1
- fi
-
- if grep -Fq "$marker" "$file"; then
- return 0
- fi
-
- cat >> "$file" <<'EOF'
-
-# AeroCore Return to Gaming Mode shortcut migration
-# Replace the legacy privileged systemd launcher left by older Bazzite images.
-if [[ -f "$HOME/Desktop/Return.desktop" ]]; then
- sed -i 's|^Exec=systemctl start return-to-gamemode\.service$|Exec=/usr/bin/return-to-gamemode|' "$HOME/Desktop/Return.desktop"
-fi
-EOF
-}
-
# Keep AeroCore's public image-name, while restoring the Deck capability checks
# used by Bazzite's runtime scripts. These are literal source lines; variable
# expansion must happen later, when the scripts run on the installed system.
@@ -220,4 +197,3 @@ patch_condition \
3
patch_desktop_branding_migration "$(target_path /usr/libexec/bazzite-user-setup)"
-patch_gamemode_shortcut_migration "$(target_path /usr/libexec/bazzite-user-setup)"
diff --git a/tests/test-patch-bazzite-deck-identity.sh b/tests/test-patch-bazzite-deck-identity.sh
index 0b0586c..fa420ce 100755
--- a/tests/test-patch-bazzite-deck-identity.sh
+++ b/tests/test-patch-bazzite-deck-identity.sh
@@ -42,7 +42,6 @@ assert_count 1 "${deck_condition}" "${hardware_setup}"
assert_count 1 "${deck_condition}" "${steam}"
assert_count 3 "${deck_condition}" "${user_setup}"
assert_count 1 'AeroCore Steam state migration' "${steam}"
-assert_count 1 'AeroCore Return to Gaming Mode shortcut migration' "${user_setup}"
# A second run must recognize the patched fixture and make no further changes.
first_digest="$(sha256sum "${hardware_setup}" "${steam}" "${user_setup}")"
@@ -55,6 +54,5 @@ if [[ "${first_digest}" != "${second_digest}" ]]; then
fi
assert_count 1 'AeroCore Steam state migration' "${steam}"
-assert_count 1 'AeroCore Return to Gaming Mode shortcut migration' "${user_setup}"
echo "Bazzite 44 Deck identity fixture passed"