Package Base Details: espanso

Git Clone URL: https://aur.archlinux.org/espanso.git (read-only, click to copy)
Keywords: expand expander rust shortcut text xorg
Submitter: Scrumplex
Maintainer: carsme
Last Packager: carsme
Votes: 39
Popularity: 1.88
First Submitted: 2019-10-03 16:10 (UTC)
Last Updated: 2024-01-28 22:33 (UTC)

Pinned Comments

carsme commented on 2024-01-21 08:25 (UTC)

NOTICE: The standalone espanso-wayland package has been merged into this pkgbase, which now builds two distinct packages:

  • espanso-x11: Espanso built for X11, replaces the former espanso package.
  • espanso-wayland: Espanso built for Wayland, identical to the former standalone espanso-wayland package.

This change simplifies maintenance and ensures the packages are kept in sync. It does however incur slightly longer build times, as Espanso is compiled twice during the build process.

Your AUR helper will hopefully handle the upgrade/migration automatically.

Let me know if you encounter any issues.

Latest Comments

1 2 3 Next › Last »

astehlik commented on 2024-03-28 21:36 (UTC) (edited on 2024-03-30 11:18 (UTC) by astehlik)

Can you replace the dependencies wxwidgets-common and wxwidgets-gtk3 with wxwidgets only?

This would allow to either select wxwidgets-gtk3 or wxwidgets-qt5 depending on which desktop environment is used.

I tested it locally with makepkg and it seems to work.

Edit: I just realized that I manually had to create a symlink from /usr/bin/wx-config to /usr/bin/wx-config-qt to make the build work. Not sure how to solve this :(

Edit2: I created a pull request to fix this: https://github.com/espanso/espanso/pull/1918

MorganDGK commented on 2024-03-14 16:22 (UTC)

@psto the linked issue should now be resolved on dev.

carsme commented on 2024-03-09 16:39 (UTC)

@NathanU unfortunately I cannot reproduce this build failure, can you try building in a clean chroot?

NathanU commented on 2024-03-07 19:00 (UTC) (edited on 2024-03-21 21:45 (UTC) by NathanU)

espanso-wayland build fails:

error[E0658]: use of unstable library feature 'is_some_with'
   --> espanso-engine/src/process/middleware/disable.rs:131:6
    |
131 |     .is_some_and(|key| key == &event.key)
    |      ^^^^^^^^^^^
    |
    = note: see issue #93050 <https://github.com/rust-lang/rust/issues/93050> for more information

error[E0277]: can't compare `&Key` with `Key`
   --> espanso-engine/src/process/middleware/disable.rs:131:28
    |
131 |     .is_some_and(|key| key == &event.key)
    |                            ^^ no implementation for `&Key == Key`
    |
    = help: the trait `PartialEq<Key>` is not implemented for `&Key`
    = help: the trait `PartialEq` is implemented for `Key`
    = note: required for `&&Key` to implement `PartialEq<&Key>`

Some errors have detailed explanations: E0277, E0658.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `espanso-engine` due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: espanso-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
espanso-wayland - exit status 4

EDIT: I just needed to update rust and the build was successful.

carsme commented on 2024-01-21 08:25 (UTC)

NOTICE: The standalone espanso-wayland package has been merged into this pkgbase, which now builds two distinct packages:

  • espanso-x11: Espanso built for X11, replaces the former espanso package.
  • espanso-wayland: Espanso built for Wayland, identical to the former standalone espanso-wayland package.

This change simplifies maintenance and ensures the packages are kept in sync. It does however incur slightly longer build times, as Espanso is compiled twice during the build process.

Your AUR helper will hopefully handle the upgrade/migration automatically.

Let me know if you encounter any issues.

psto commented on 2024-01-04 18:34 (UTC)

@carsme everything works, thank you!

This version introduces a bug for me where the Espanso Sync Tool window cannot be closed. If anyone has the same issue, you can track it on github: Espanso Sync Tool window not rendering correctly on wayland.

carsme commented on 2024-01-04 15:10 (UTC)

@psto, thanks for reporting, it should be fixed in 2.2.1-2.

psto commented on 2024-01-04 14:14 (UTC) (edited on 2024-01-04 14:15 (UTC) by psto)

Thank you for adopting the package @carsme. I have the same test error while updating as noted in the main espanso package (which you have already fixed).

running 1 test
test tests::test_migration::simple_case ... FAILED

failures:

---- tests::test_migration::simple_case stdout ----
thread 'tests::test_migration::simple_case' panicked at 'assertion failed: `(left == right)`

Diff < left / right > :
 [
<    "/config/default.yml",
     "/match/base.yml",
>    "/config/default.yml",
 ]

', espanso-migrate/src/lib.rs:231:7
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    tests::test_migration::simple_case

test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 4 filtered out; finished in 0.00s

error: test failed, to rerun pass `-p espanso-migrate --lib`
==> ERROR: A failure occurred in check().
    Aborting...
error: failed to build 'espanso-wayland-2.2.1-1':
error: packages failed to build: espanso-wayland-2.2.1-1

fady0 commented on 2024-01-04 08:43 (UTC)

Everything is working now, thank you! @carsme

carsme commented on 2024-01-04 07:59 (UTC)

@fady0, Should be fixed in the new pkgver (2.2.1-2). Let me know if the issue persists.