Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

espanso periodically stops triggering #1966

Open
1 task
twoprops opened this issue May 8, 2024 · 1 comment
Open
1 task

espanso periodically stops triggering #1966

twoprops opened this issue May 8, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@twoprops
Copy link

twoprops commented May 8, 2024

Description

I seem to be having the same issue as #880, which was closed without ever apparently being resolved. Espanso 2.2.1 installs and works normally on my Fedora 40 (same problem with Fedora 39) running KDE/Plasma 6/Wayland. After a variable amount of time (seconds to maybe a day, hard to say for sure) espanso will stop triggering on typing. It's still running: espanso status reports espanso is running. Hot keys still seem to work. If I have the trigger toggle enabled (I usually don't) I can toggle espanso and get the enabled/disabled messages, but it still doesn't trigger on text. Executing espanso restart will get it working again, but it pops up a little "Espanso is running!" window which causes loss of focus at which point it would have been much easier to type the full text instead of trying to use an expansion.

Steps to reproduce

  1. start espanso (from locally compiled binary)
  2. happily use espanso's awesome text expansion capabilities
  3. a variable amount of time later, espanso stops expanding text, though still responds to hotkeys
  4. only a restart of espanso will restore function (toggling, for example, does not)
  5. continue at step 2

Expected behavior

espanso would continue to trigger and expand text

Screenshots

No response

Logs

No response

Your environment

espanso 2.2.1 compiled from source (cloned this github repo)
Fedora Workstation 39 and Fedora Workstation 40, KDE plasma 5 and plasma 6.0.4), Wayland
rustc 1.78.0

Self-service

  • I'd be willing to fix this bug myself.
@twoprops twoprops added the bug Something isn't working label May 8, 2024
@twoprops
Copy link
Author

twoprops commented May 22, 2024

It seems that this is a known issue with Wayland that is being attended to but delayed due to limited resources. If anyone else encounters this, I implemented a mostly-effective workaround using cron: use crontab -e to edit your local crontab, and add:

*/15 *  *  *  * /usr/local/bin/espanso restart >>/dev/null

This will restart espanso every 15 minutes. I have noticed that on Fedora 40, the little window that pops up saying "Espanso is running!" no longer steals focus as it seemed to in Fedora 39 (or there was a change in Espanso) -- such a change in focus would be really annoying occurring asynchronously so the workaround might not be viable with Fedora 39 or other distros that behave similarly. Also, even with restarting every 15 minutes there are still times that Espanso is unresponsive when I try to use it, and I suspect that, should a restart occur in the midst of typing a trigger, it will prevent Espanso from triggering. Overall, though, this seems to be a good mitigation strategy while the new Espanso team gets up to speed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant