From 6f18a2f8971e89593536773ed32eaf1141cd98a5 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 16 Jun 2026 02:21:09 +0000 Subject: [PATCH] fix: detect touch screens dynamically instead of hardcoding Wacom device name The xinput loop now scans all input devices at startup, matches anything with "touch" or "finger" in the name (excluding touchpads/trackpads), and attempts to enable Wacom touch gestures on each match. Non-Wacom devices silently ignore the set-prop call, so the loop is safe on any hardware. https://claude.ai/code/session_01EyjEQLWbTXcZgbMDarf7NU --- ubuntu-based-kiosk-v1.0.2.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ubuntu-based-kiosk-v1.0.2.sh b/ubuntu-based-kiosk-v1.0.2.sh index 95a8355..cef1e63 100644 --- a/ubuntu-based-kiosk-v1.0.2.sh +++ b/ubuntu-based-kiosk-v1.0.2.sh @@ -7345,8 +7345,13 @@ for i in {1..10}; do sleep 1 done -# Enable Wacom touch gesture support so two-finger swipe works after reboot -xinput set-prop "Wacom HID 48E3 Finger touch" "Wacom Enable Touch Gesture" 1 2>/dev/null || true +# Enable multi-touch gesture support for any detected touch screen +# Wacom devices require "Wacom Enable Touch Gesture" to be set (defaults to 0). +# The set-prop call is silently ignored for non-Wacom devices that don't have this property. +# Excludes touchpads — only targets touch screens and finger-touch digitizers. +while IFS= read -r dev; do + xinput set-prop "$dev" "Wacom Enable Touch Gesture" 1 2>/dev/null || true +done < <(xinput list --name-only 2>/dev/null | grep -i "touch\|finger" | grep -iv "touchpad\|trackpad") exec node_modules/electron/dist/electron . \ --no-sandbox --disable-gpu-sandbox --disable-dev-shm-usage \