Giter VIP home page Giter VIP logo

Comments (6)

tigger04 avatar tigger04 commented on June 10, 2024

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.

morgan-dgk avatar morgan-dgk commented on June 10, 2024

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.

pointydev avatar pointydev commented on June 10, 2024

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.

pointydev avatar pointydev commented on June 10, 2024

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.

morgan-dgk avatar morgan-dgk commented on June 10, 2024

@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.

pointydev avatar pointydev commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.