From d3cd4a901554d812340af2274f0b837a1f25da34 Mon Sep 17 00:00:00 2001 From: Albert Armea Date: Sat, 14 Feb 2026 22:26:10 -0500 Subject: [PATCH] Always pass `--unsupported-gpu` to Sway On NVIDIA GPUs, this allows the launcher to come up at all. If it is not provided, Sway will exit immediately after printing a warning to the journal. This can be very hard to debug if you don't know what you're looking for. On other GPUs, including those that play nice with Linux like Intel and AMD, the option is completely harmless. --- scripts/lib/install.sh | 2 +- scripts/lib/sway.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/lib/install.sh b/scripts/lib/install.sh index 33b659f..1c0d658 100755 --- a/scripts/lib/install.sh +++ b/scripts/lib/install.sh @@ -113,7 +113,7 @@ install_desktop_entry() { [Desktop Entry] Name=Shepherd Kiosk Comment=Shepherd game launcher kiosk mode -Exec=sway -c $SWAY_CONFIG_DIR/$SHEPHERD_SWAY_CONFIG +Exec=sway -c $SWAY_CONFIG_DIR/$SHEPHERD_SWAY_CONFIG --unsupported-gpu Type=Application DesktopNames=shepherd EOF diff --git a/scripts/lib/sway.sh b/scripts/lib/sway.sh index 9289fb2..e500f1b 100755 --- a/scripts/lib/sway.sh +++ b/scripts/lib/sway.sh @@ -100,7 +100,7 @@ sway_start_nested() { trap sway_cleanup EXIT # Start sway with wayland backend (nested in current session) - WLR_BACKENDS=wayland WLR_LIBINPUT_NO_DEVICES=1 sway -c "$sway_config" & + WLR_BACKENDS=wayland WLR_LIBINPUT_NO_DEVICES=1 sway -c "$sway_config" --unsupported-gpu & SWAY_PID=$! info "Sway started with PID $SWAY_PID"