Espanso doesn't work with certain applications on Wayland (KDE Plasma, GTK)
Description
For several months, I have been encountering difficulties getting Espanso to work properly on my system. It works in some applications (such as Electron-based apps like Brave and Discord), but not in other native KDE Plasma applications like Dolphin (file explorer) or Konsole (terminal). I suspect the issue may be related to Qt-based applications or a specific interaction with Wayland. I’ve tried several solutions suggested in the documentation and on forums without success.
I have also attempted various changes to the settings, including trying out what seemed to be a similar issue reported in #768 without any improvement.
I’ve checked Espanso’s configuration, and the default.yml file appears correct (see excerpt below):
➜ ~ cat /home/temo/.config/espanso/config/default.yml
label: null
backend: null
enable: null
clipboard_threshold: null
auto_restart: null
preserve_clipboard: null
toggle_key: OFF
paste_shortcut: null
disable_x11_fast_inject: null
word_separators: null
backspace_limit: null
apply_patch: null
search_trigger: null
search_shortcut: 'CTRL+SPACE'
undo_backspace: true
show_notifications: null
show_icon: null
secure_input_notification: null
post_form_delay: null
post_search_delay: null
emulate_alt_codes: null
win32_exclude_orphan_events: null
win32_keyboard_layout_cache_interval: null
x11_use_xclip_backend: null
x11_use_xdotool_backend: null
pre_paste_delay: null
restore_clipboard_delay: null
paste_shortcut_event_delay: null
inject_delay: null
key_delay: null
keyboard_layout:
layout: "fr"
variant: "azerty"
model: "pc105"
evdev_modifier_delay: null
includes: null
excludes: null
extra_includes: null
extra_excludes: null
use_standard_includes: null
filter_title: null
filter_class: null
filter_exec: null
filter_os: null
Despite these efforts, Espanso still doesn’t work as expected in Qt-based KDE Plasma applications. Any advice or further troubleshooting steps would be greatly appreciated.
Steps to reproduce
- Install Espanso on a system running KDE Plasma with Wayland (Arch Linux, Plasma 6.2.0).
- Launch applications like Dolphin or Konsole.
- Try using the shortcuts defined in Espanso (e.g., text replacement or abbreviation).
- Observe that the shortcuts don't work as expected in these applications (however, they work in apps like Brave or Discord).
Expected behavior
I expected Espanso to work seamlessly in all applications, including native KDE Plasma applications like Dolphin and Konsole, in addition to Electron-based apps.
Screenshots
No response
Logs
Here’s the output from the Espanso logs after a standard start-up:
➜ ~ espanso log
09:24:34 [daemon(104601)] [INFO] reading configs from: "/home/temo/.config/espanso"
09:24:34 [daemon(104601)] [INFO] reading packages from: "/home/temo/.config/espanso/match/packages"
09:24:34 [daemon(104601)] [INFO] using runtime dir: "/home/temo/.cache/espanso"
09:24:34 [daemon(104601)] [INFO] system info: Arch Linux v - kernel: 6.12.1-arch1-1
09:24:34 [daemon(104601)] [INFO] watching for changes in path: "/home/temo/.config/espanso"
09:24:34 [daemon(104601)] [INFO] espanso version: 2.2.1
09:24:34 [daemon(104601)] [INFO] spawning the worker process...
09:24:34 [daemon(104601)] [INFO] binded to IPC unix socket: /home/temo/.cache/espanso/espansodaemonv2.sock
09:24:34 [worker(104609)] [INFO] reading configs from: "/home/temo/.config/espanso"
09:24:34 [worker(104609)] [INFO] reading packages from: "/home/temo/.config/espanso/match/packages"
09:24:34 [worker(104609)] [INFO] using runtime dir: "/home/temo/.cache/espanso"
09:24:34 [worker(104609)] [INFO] system info: Arch Linux v - kernel: 6.12.1-arch1-1
09:24:34 [worker(104609)] [INFO] binded to IPC unix socket: /home/temo/.cache/espanso/espansoworkerv2.sock
09:24:34 [worker(104609)] [INFO] using X11AppInfoProvider
09:24:34 [worker(104609)] [INFO] monitoring the status of the daemon process
09:24:34 [worker(104609)] [INFO] using X11Source
09:24:34 [worker(104609)] [INFO] using X11ProxyInjector
09:24:35 [worker(104609)] [INFO] using X11Clipboard
➜ ~ espanso --version
espanso 2.2.1
Your environment
- Operating system: Arch Linux
- KDE Plasma version: 6.2.0
- Espanso version: 2.2.1
- Wayland version: (Specify if needed)
- X11 / Wayland: Wayland
- Shell: Zsh
Self-service
- [ ] I'd be willing to fix this bug myself.
What exactly do the expansions do when they don't work?
You may need to change the injection mechanism or one or more of the other options, although many don't apply to Wayland.
What exactly do the expansions do when they don't work?
You may need to change the injection mechanism or one or more of the other options, although many don't apply to Wayland.
I've tried several combinations in the past but may have missed some 🤷♂️
I have a Debian OS in another PC in my home later I can try this and see if it works with that config
I have a Debian OS in another PC in my home later I can try this and see if it works with that config
ok thanks!