chore: drop non-Omarchy fallback in portal-recovery Walker restart

DeckShift targets Omarchy only — the fallback added in 74b1a5b was
unnecessary defensive coding. Helper now just calls
omarchy-restart-walker directly. Also updated the file header to
remove the stale "distro-portability is the next direction" note.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
28allday 2026-05-12 20:59:00 +01:00
parent 74b1a5bb6b
commit 8293d26c07

View file

@ -3,8 +3,8 @@
# DeckShift - Steam Deck Mode for Linux + Hyprland
#
# Forked from Super-Shift-S-Omarchy-Deck-Mode (v12.27) → renamed Omarchy Deck →
# renamed DeckShift. Currently targets Omarchy/Arch but distro-portability is
# the next direction. Extended with:
# renamed DeckShift. Targets Omarchy (Arch + Hyprland + SDDM + Walker). Extended
# with:
# - NVIDIA GSP-aware driver branch selection (legacy 580xx for Pascal/Maxwell)
# - omarchy-pkg-add idempotent package installs
# - Optional Xbox Bluetooth controller support (xpadneo-dkms)
@ -34,7 +34,7 @@ set -Euo pipefail
# -u: Treat unset variables as errors (catches typos in variable names)
# -o pipefail: A pipeline fails if ANY command in it fails, not just the last one
DECKSHIFT_VERSION="0.1.5"
DECKSHIFT_VERSION="0.1.6"
# Resolve the directory this script lives in so we can find sibling files like
# bin/deckshift-settings and applications/deckshift-settings.desktop when
@ -2469,14 +2469,8 @@ sleep 2
systemctl --user start xdg-desktop-portal-hyprland.service xdg-desktop-portal.service 2>/dev/null || true
# Walker (elephant) holds the clipboard listener, which is also bound to the
# dead Hyprland's Wayland socket and stays broken until restarted. Prefer the
# omarchy helper if present; fall back to direct systemctl --user.
if command -v omarchy-restart-walker >/dev/null 2>&1; then
omarchy-restart-walker >/dev/null 2>&1 || true
else
systemctl --user restart elephant.service 2>/dev/null || true
systemctl --user restart app-walker@autostart.service 2>/dev/null || true
fi
# dead Hyprland's Wayland socket and stays broken until restarted.
omarchy-restart-walker >/dev/null 2>&1 || true
PORTAL_RECOVERY
sudo chmod +x "$portal_recovery"