Comments (6)
ok, facepalm moment.
espanso-wayland start --unmanaged
seems to have done it.
It would be good to get it working with systemd though - any tips on what I might be doing wrong?
from espanso.
Can you do espanso-wayland -vvvvv worker
and share the log here? I assume this should work with the binary built for wayland as well.
from espanso.
Similar issue, but using the espanso-wayland
package from Terra:
[pointy@pointy ~]$ espanso -vvvvvv worker
19:12:19 [worker(10408)] [DEBUG] (1) espanso_path: detected config directory in $HOME/.config/espanso
19:12:19 [worker(10408)] [DEBUG] (1) espanso_path: detected default runtime dir: "/home/pointy/.cache/espanso"
19:12:19 [worker(10408)] [DEBUG] (1) espanso_path: detected default packages dir: "/home/pointy/.config/espanso/match/packages"
19:12:19 [worker(10408)] [INFO] reading configs from: "/home/pointy/.config/espanso"
19:12:19 [worker(10408)] [INFO] reading packages from: "/home/pointy/.config/espanso/match/packages"
19:12:19 [worker(10408)] [INFO] using runtime dir: "/home/pointy/.cache/espanso"
19:12:19 [worker(10408)] [INFO] system info: Fedora Linux v40 - kernel: 6.8.7-300.fc40.x86_64
19:12:19 [worker(10408)] [DEBUG] (1) espanso_config::config::store: loaded default config at path: "/home/pointy/.config/espanso/config/default.yml"
19:12:19 [worker(10408)] [DEBUG] (1) espanso_config::config::store: loaded config at path: "/home/pointy/.config/espanso/config/csgo.yml"
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'alacritty_terminal_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'emacs_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'gedit_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'generic_terminal_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'kitty_terminal_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'konsole_terminal_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'libreoffice_writer_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'simple_terminal_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'simple_terminal_2_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'terminator_terminal_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'termite_terminal_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'thunderbird_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'tilix_terminal_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'urxvt_terminal_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'xterm_terminal_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'yakuake_terminal_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::patch::config_store: skipping 'virtualbox_x11' patch
19:12:19 [worker(10408)] [DEBUG] (1) espanso::cli::worker: starting with start-reason = None
19:12:19 [worker(10408)] [DEBUG] (1) espanso::icon: skipping extraction for '"/home/pointy/.cache/espanso/iconv2.png"', as it's already present
19:12:19 [worker(10408)] [DEBUG] (1) espanso::icon: skipping extraction for '"/home/pointy/.cache/espanso/search.png"', as it's already present
19:12:19 [worker(10408)] [DEBUG] (1) espanso::icon: skipping extraction for '"/home/pointy/.cache/espanso/icon_no_background.png"', as it's already present
19:12:19 [worker(10408)] [INFO] using WaylandAppInfoProvider
19:12:19 [worker(10408)] [INFO] binded to IPC unix socket: /home/pointy/.cache/espanso/espansoworkerv2.sock
19:12:19 [worker(10408)] [WARN] this version of espanso doesn't come with modulo support, so graphical features (such as Forms and Search) might not be available
19:12:19 [worker(10408)] [WARN] EVDEV backend is being used, but without enabling linux capabilities.
19:12:19 [worker(10408)] [WARN] Although you CAN run espanso EVDEV backend as root, it's not recommended due
19:12:19 [worker(10408)] [WARN] to security reasons. Espanso supports linux capabilities to limit the attack surface
19:12:19 [worker(10408)] [WARN] area by only leveraging on the CAP_DAC_OVERRIDE capability (needed to work with
19:12:19 [worker(10408)] [WARN] /dev/input/* devices to detect and inject text) and disabling it as soon as the
19:12:19 [worker(10408)] [WARN] initial setup is completed.
19:12:19 [worker(10408)] [WARN] unable to determine keyboard layout automatically, please explicitly specify it in the configuration.
19:12:19 [worker(10408)] [INFO] using EVDEVSource
19:12:19 [worker(10408)] [ERROR] Unable to open EVDEV devices, this usually has to do with permissions.
19:12:19 [worker(10408)] [ERROR] You can either add the current user to the 'input' group or run espanso as root
19:12:19 [worker(10408)] [ERROR] thread 'engine thread' panicked at 'failed to initialize detector module: detection source initialization failed': espanso/src/cli/worker/engine/mod.rs:140
19:12:19 [worker(10408)] [ERROR] Unable to block the LinuxEventLoop: receiving on an empty and disconnected channel
19:12:19 [worker(10408)] [ERROR] thread 'main' panicked at 'unable to run main eventloop: receiving on an empty and disconnected channel': espanso/src/cli/worker/mod.rs:160
Tried adding myself to the input
group as suggested, but to no avail. Notably, I cannot start using espanso start --unmanaged
either.
from espanso.
After running sudo setcap "cap_dac_override+p" $(which espanso)
, while I still can't run espanso start --unmanaged
, I get this log for the worker:
[pointy@pointy ~]$ espanso -vvvvvv worker
19:32:46 [worker(12873)] [DEBUG] (1) espanso_path: detected config directory in $HOME/.config/espanso
19:32:46 [worker(12873)] [DEBUG] (1) espanso_path: detected default runtime dir: "/home/pointy/.cache/espanso"
19:32:46 [worker(12873)] [DEBUG] (1) espanso_path: detected default packages dir: "/home/pointy/.config/espanso/match/packages"
19:32:46 [worker(12873)] [INFO] reading configs from: "/home/pointy/.config/espanso"
19:32:46 [worker(12873)] [INFO] reading packages from: "/home/pointy/.config/espanso/match/packages"
19:32:46 [worker(12873)] [INFO] using runtime dir: "/home/pointy/.cache/espanso"
19:32:46 [worker(12873)] [INFO] system info: Fedora Linux v40 - kernel: 6.8.7-300.fc40.x86_64
19:32:46 [worker(12873)] [DEBUG] (1) espanso_config::config::store: loaded default config at path: "/home/pointy/.config/espanso/config/default.yml"
19:32:46 [worker(12873)] [DEBUG] (1) espanso_config::config::store: loaded config at path: "/home/pointy/.config/espanso/config/csgo.yml"
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'alacritty_terminal_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'emacs_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'gedit_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'generic_terminal_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'kitty_terminal_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'konsole_terminal_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'libreoffice_writer_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'simple_terminal_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'simple_terminal_2_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'terminator_terminal_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'termite_terminal_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'thunderbird_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'tilix_terminal_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'urxvt_terminal_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'xterm_terminal_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'yakuake_terminal_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::patch::config_store: skipping 'virtualbox_x11' patch
19:32:46 [worker(12873)] [DEBUG] (1) espanso::cli::worker: starting with start-reason = None
19:32:46 [worker(12873)] [DEBUG] (1) espanso::icon: skipping extraction for '"/home/pointy/.cache/espanso/iconv2.png"', as it's already present
19:32:46 [worker(12873)] [DEBUG] (1) espanso::icon: skipping extraction for '"/home/pointy/.cache/espanso/search.png"', as it's already present
19:32:46 [worker(12873)] [DEBUG] (1) espanso::icon: skipping extraction for '"/home/pointy/.cache/espanso/icon_no_background.png"', as it's already present
19:32:46 [worker(12873)] [INFO] using WaylandAppInfoProvider
19:32:46 [worker(12873)] [INFO] binded to IPC unix socket: /home/pointy/.cache/espanso/espansoworkerv2.sock
19:32:46 [worker(12873)] [WARN] this version of espanso doesn't come with modulo support, so graphical features (such as Forms and Search) might not be available
19:32:46 [worker(12873)] [DEBUG] (2) espanso::cli::worker::engine: using linux capabilities to grant permissions needed by EVDEV backend
19:32:46 [worker(12873)] [DEBUG] (2) espanso::cli::worker::engine: successfully granted permissions using capabilities
19:32:46 [worker(12873)] [WARN] unable to determine keyboard layout automatically, please explicitly specify it in the configuration.
19:32:46 [worker(12873)] [INFO] using EVDEVSource
19:32:46 [worker(12873)] [INFO] Querying modifier status...
19:32:46 [worker(12873)] [DEBUG] (4) espanso_detect::evdev: Updating device modifier state: ModifiersState { ctrl: false, alt: false, shift: false, caps_lock: false, meta: false, num_lock: false }
19:32:46 [worker(12873)] [WARN] unable to determine keyboard layout automatically, please explicitly specify it in the configuration.
19:32:46 [worker(12873)] [INFO] using EVDEVInjector
19:32:46 [worker(12873)] [INFO] using WaylandFallbackClipboard
from espanso.
@pointydev the worker seems to working correctly, do expansions works after running espanso worker
? It seems strange that the worker would run successfully while the service fails to start.
from espanso.
Hey @morgan-dgk, I reverted back to using X11 after encountering other applications in my workflow breaking under Wayland, so I can't test the environment I previously mentioned currently.
from espanso.
Related Issues (20)
- can't exclude espanso in specific apps HOT 2
- Replacement only works some of the time HOT 13
- Using trigger with regex conditioned replacement text HOT 6
- Python throws an error when the clipboard contains newline. HOT 3
- Animated gifs paste incorrectly in certain apps HOT 1
- link to config file/match folder in the taskbar right click menu HOT 3
- espanso periodically stops triggering HOT 1
- The candidate input method is being replaced while typing, not after typing. HOT 5
- Espanso tray Icon is difficult to see with Light color mode (Windows) HOT 2
- Reactive input for filtering files HOT 1
- null
- emoji representation in search bar HOT 4
- Search shortcut: `CMD+F4` key combination not working HOT 3
- Portable Espanso on Windows does not override installed copy HOT 5
- Switching Layouts restarts SyncTool and takes focus HOT 10
- replace multi clipboards HOT 2
- Espanso not triggering on Windows 11 HOT 6
- Cannot cat files without producing some output prior (wayland only) HOT 2
- Espanso not working with Cisco Packet tracer Cli HOT 1
- Getting mixed up output on Windows using 'portet' app HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espanso.