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
This commit is contained in:
Claude
2026-06-16 02:21:09 +00:00
parent c18615a78e
commit 6f18a2f897
+7 -2
View File
@@ -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 \