Handy Wayland Autostart Fix

Documenting and fixing Handy speech-to-text app failing on KDE Plasma Wayland due to autostart race condition

About This Project

handy-wayland-autostart-fix is a documentation and configuration repository addressing a startup failure in Handy, a Tauri-based speech-to-text application, when it is launched automatically on KDE Plasma under Wayland. The root cause is identified as the absence of the DISPLAY environment variable in autostart processes, which prevents the Enigo keyboard simulation library from establishing its required X11 connection through XWayland. A secondary cause is a hotkey conflict in which another application, such as Claude Desktop, registers the Pause key in kglobalshortcutsrc and intercepts it before Handy receives it.

The repository describes the observable symptoms, including the hotkey having no effect while the process remains running, and reproduces the relevant log entries from Handy's log file. It provides shell commands for inspecting the running process environment and the KDE shortcut configuration to confirm which cause applies. Four remedies are documented: setting DISPLAY explicitly in the XDG autostart desktop entry, removing conflicting shortcut bindings with kwriteconfig6 and a plasma-kglobalaccel restart, restarting the application manually within an existing session, and replacing the autostart entry with a systemd user service bound to graphical-session.target. Verification steps are included to confirm the expected environment variables and successful Enigo initialization.

The project is likely to be useful to Linux users running Wayland-based KDE desktops who rely on Handy or similar Tauri and Enigo applications for push-to-talk dictation, and to anyone troubleshooting why global input tools fail under XWayland-dependent autostart conditions. It is part of a broader Patches Index maintained by the same author.

Project Details

Explore More Projects