From 540c57659161f6818c0ffe0dc8dca01d3a8e5160 Mon Sep 17 00:00:00 2001 From: Khoa Vo Date: Fri, 26 Jun 2026 16:44:42 +0700 Subject: [PATCH] fix: add xdotool bundling to build-appimage.sh - Copies xdotool from system or /tmp/xdotool-extract - Fallback message if not found - xdotool type is preferred for Unicode injection (no clipboard hacks) --- packaging/appimage/build-appimage.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packaging/appimage/build-appimage.sh b/packaging/appimage/build-appimage.sh index 1152e72..cf75827 100644 --- a/packaging/appimage/build-appimage.sh +++ b/packaging/appimage/build-appimage.sh @@ -53,6 +53,18 @@ else echo " xclip not found on system, skipping" fi +# Bundle xdotool for reliable Unicode text injection +echo " Bundling xdotool..." +if command -v xdotool &>/dev/null; then + cp "$(which xdotool)" "$APPDIR/usr/bin/" + echo " xdotool bundled" +elif [ -f /tmp/xdotool-extract/usr/bin/xdotool ]; then + cp /tmp/xdotool-extract/usr/bin/xdotool "$APPDIR/usr/bin/" + echo " xdotool bundled (from extract)" +else + echo " xdotool not found, Unicode falls back to clipboard" +fi + # Compile and bundle vietc-xrecord (C helper for XRecord keyboard capture) echo " Compiling vietc-xrecord..." if command -v gcc &>/dev/null; then