Package Details: espanso-x11 2.4.1-1

Git Clone URL: https://aur.archlinux.org/espanso.git (read-only, click to copy)
Package Base: espanso
Description: Cross-platform Text Expander written in Rust (built for X11)
Upstream URL: https://github.com/espanso/espanso
Keywords: expand expander rust shortcut text xorg
Licenses: GPL-3.0-only
Conflicts: espanso
Provides: espanso
Replaces: espanso
Submitter: Scrumplex
Maintainer: carsme (asm0dey)
Last Packager: asm0dey
Votes: 49
Popularity: 1.00
First Submitted: 2019-10-03 16:10 (UTC)
Last Updated: 2026-09-04 18:01 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

Anagastes commented on 2026-09-08 16:08 (UTC) (edited on 2026-09-08 16:11 (UTC) by Anagastes)

Could not be installed..:)

==> Entering fakeroot environment...
==> Starting package_espanso-x11()...
install: Directory '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr' is being created
install: Directory '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/bin' is being created
'target-x11/release/espanso' -> '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/bin/espanso'
install: Directory '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/lib' is being created
install: Directory '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/lib/systemd' is being created
install: Directory '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/lib/systemd/user' is being created
'espanso.service' -> '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/lib/systemd/user/espanso.service'
install: Directory '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/share' is being created
install: Directory '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/share/applications' is being created
'espanso.desktop' -> '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/share/applications/espanso.desktop'
install: Directory '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/share/doc' is being created
install: Directory '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/share/doc/espanso' is being created
'./Compilation.md' -> '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/share/doc/espanso/Compilation.md'
'./README.md' -> '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/share/doc/espanso/README.md'
'./SECURITY.md' -> '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/share/doc/espanso/SECURITY.md'
install: Directory '/home/xxx/.cache/yay/espanso/pkg/espanso-x11/usr/share/pixmaps' is being created
install: Unable to call stat for 'espanso/src/res/linux/icon.png': File or directory not found
==> ERROR: An error occurred in package_espanso-x11().
    Aborting...
 -> Error during build: espanso-exit status 4
 -> The following packages could not be installed. Manual intervention is required:
espanso-wayland - exit status 4

same for wayland env

==> Entering fakeroot environment...
==> Starting package_espanso-wayland()...
install: Directory '/home/xxx/espanso/pkg/espanso-wayland/usr' is being created
install: Directory '/home/xxx/espanso/pkg/espanso-wayland/usr/bin' is being created
'target-wayland/release/espanso' -> '/home/xxx/espanso/pkg/espanso-wayland/usr/bin/espanso'
install: Directory '/home/xxx/espanso/pkg/espanso-wayland/usr/lib' is being created
install: Directory '/home/xxx/espanso/pkg/espanso-wayland/usr/lib/systemd' is being created
install: Directory '/home/xxx/espanso/pkg/espanso-wayland/usr/lib/systemd/user' is being created
'espanso.service' -> '/home/xxx/espanso/pkg/espanso-wayland/usr/lib/systemd/user/espanso.service'
install: Directory '/home/xxx/espanso/pkg/espanso-wayland/usr/share' is being created
install: Directory '/home/xxx/espanso/pkg/espanso-wayland/usr/share/applications' is being created
'espanso.desktop' -> '/home/xxx/espanso/pkg/espanso-wayland/usr/share/applications/espanso.desktop'
install: Directory '/home/xxx/espanso/pkg/espanso-wayland/usr/share/doc' is being created
install: Directory '/home/xxx/espanso/pkg/espanso-wayland/usr/share/doc/espanso' is being created
'./Compilation.md' -> '/home/xxx/espanso/pkg/espanso-wayland/usr/share/doc/espanso/Compilation.md'
'./README.md' -> '/home/xxx/espanso/pkg/espanso-wayland/usr/share/doc/espanso/README.md'

leoneill commented on 2026-09-05 16:56 (UTC) (edited on 2026-09-05 16:57 (UTC) by leoneill)

I was trying to install espanso-wayland. I edited beforehand PKGBUILD: - espanso/src/res/linux/icon.png + espanso/src/res/linux/espanso.png

I got this error: :: espanso-x11-2.4.1-1 and espanso-wayland-2.4.1-1 are in conflict (I did not have espanso-x11 installed, just an older version of espanso-wayland 2.2.x)

Then I removed al references to espanso-X11 from the PKGBUILD, then espanso-wayland installed fine.

# Maintainer: Carl Smedstad <carsme@archlinux.org>
# Contributor: Sefa Eyeoglu <contact@scrumplex.net>

pkgbase=espanso
pkgname=(
  espanso-wayland
)
pkgver=2.4.1
pkgrel=1
pkgdesc="Cross-platform Text Expander written in Rust"
arch=(x86_64)
url="https://github.com/espanso/espanso"
license=(GPL-3.0-only)
makedepends=(
  bzip2
  cargo
  dbus
  gcc-libs
  glibc
  libx11
  libxcb
  libxkbcommon
  libxtst
  openssl
  wl-clipboard
  wxwidgets-common
  wxwidgets-gtk3
  xclip
  xdotool
)
options=(!lto)
source=(
  "$url/archive/v$pkgver/$pkgbase-$pkgver.tar.gz"
)
sha256sums=('3121627138be4b1f106b8dfd73fb4b7030ecb44c6a8f4e7628a1174b58e5cfe2')

prepare() {
  cd $pkgbase-$pkgver

  export RUSTUP_TOOLCHAIN=stable
  cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"

  # Don't change the original service file, as it will be embedded in the
  # binary
  sed 's|{{{espanso_path}}}|/usr/bin/espanso|g' espanso/src/res/linux/systemd.service \
    >espanso.service

  # Icon name
  sed 's/Icon=icon/Icon=espanso/g' espanso/src/res/linux/espanso.desktop \
    >espanso.desktop
}

build() {
  cd $pkgbase-$pkgver

  export RUSTUP_TOOLCHAIN=stable

  export CARGO_TARGET_DIR=target-wayland
  cargo build --frozen --release \
    --features wayland \
    --manifest-path espanso/Cargo.toml \
    --package espanso
}

check() {
  cd $pkgbase-$pkgver

  # Skip failing tests - unsure why they fail
  export RUSTUP_TOOLCHAIN=stable
  cargo test --frozen --all-features -- \
    --skip tests::ipc_multiple_clients \
    --skip tests::test_migration
}

package_espanso-wayland() {
  pkgdesc="$pkgdesc (built for Wayland)"
  depends=(
    bzip2
    dbus
    gcc-libs
    glibc
    libxkbcommon
    openssl
    wl-clipboard
    wxwidgets-common
    wxwidgets-gtk3
  )
  provides=(espanso)
  conflicts=(espanso)
  install=espanso-wayland.install

  cd $pkgbase-$pkgver
  install -vDm755 -t "$pkgdir/usr/bin" target-wayland/release/espanso
  install -vDm644 -t "$pkgdir/usr/lib/systemd/user" espanso.service
  install -vDm644 -t "$pkgdir/usr/share/applications" espanso.desktop
  install -vDm644 -t "$pkgdir/usr/share/doc/espanso" ./*.md
  install -vDm644 espanso/src/res/linux/espanso.png \
    "$pkgdir/usr/share/pixmaps/espanso.png"
}

omnigenous commented on 2026-09-05 12:46 (UTC)

@m4984 thanks!

diff --git i/PKGBUILD w/PKGBUILD
index 9571294..b07cbf0 100644
--- i/PKGBUILD
+++ w/PKGBUILD
@@ -104,7 +104,7 @@ package_espanso-x11() {
   install -vDm644 -t "$pkgdir/usr/lib/systemd/user" espanso.service
   install -vDm644 -t "$pkgdir/usr/share/applications" espanso.desktop
   install -vDm644 -t "$pkgdir/usr/share/doc/espanso" ./*.md
-  install -vDm644 espanso/src/res/linux/icon.png \
+  install -vDm644 espanso/src/res/linux/espanso.png \
     "$pkgdir/usr/share/pixmaps/espanso.png"
 }

@@ -130,6 +130,6 @@ package_espanso-wayland() {
   install -vDm644 -t "$pkgdir/usr/lib/systemd/user" espanso.service
   install -vDm644 -t "$pkgdir/usr/share/applications" espanso.desktop
   install -vDm644 -t "$pkgdir/usr/share/doc/espanso" ./*.md
-  install -vDm644 espanso/src/res/linux/icon.png \
+  install -vDm644 espanso/src/res/linux/espanso.png \
     "$pkgdir/usr/share/pixmaps/espanso.png"
 }

m4984 commented on 2026-09-05 05:15 (UTC) (edited on 2026-09-05 05:20 (UTC) by m4984)

@omnigenous, the upstream source seems to have renamed the Linux icon from icon.png to espanso.png.

Adjust the PKGBUILD (Lines 107 and 133):

- espanso/src/res/linux/icon.png
+ espanso/src/res/linux/espanso.png

omnigenous commented on 2026-09-04 22:39 (UTC) (edited on 2026-09-04 22:39 (UTC) by omnigenous)

install: cannot stat 'espanso/src/res/linux/icon.png': No such file or directory
==> ERROR: A failure occurred in package_espanso-x11().
    Aborting...
 -> error making: espanso-exit status 4

Nathan22211 commented on 2026-08-09 22:44 (UTC)

it seems some deps are missing from the package build

espanso: /usr/lib/libwx_gtk3u_html-3.2.so.0: no version information available (required by espanso) espanso: /usr/lib/libwx_gtk3u_core-3.2.so.0: no version information available (required by espanso) espanso: /usr/lib/libwx_baseu-3.2.so.0: no version information available (required by espanso) unable to start service: timed out Hint: sometimes this happens because another Espanso process is left running for some reason. Please try running 'espanso restart' or manually killing all Espanso processes, then try again.

apparently an older wxwidgets is needed than what arch has

ecognito commented on 2025-12-12 22:00 (UTC)

someone else getting this error at the end?

Yes. There's a bug report for this on Espanso you can follow, too: https://github.com/espanso/espanso/issues/2594

Mentioned there that downgrading to wxwidgets-gtk3 3.2.8.1 works. I'll mention that swapping to espanso-x11-bin also works.

AlphaJack commented on 2025-12-08 23:19 (UTC)

Hi all, someone else getting this error at the end?

[...]
efaultlibs"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: ld.lld: error: undefined reference: _wx_link_dummy_func_wxhtml_chm_support()
          >>> referenced by /usr/lib/libwx_gtk3u_html-3.2.so (disallowed by --no-allow-shlib-undefined)
          collect2: error: ld returned 1 exit status


error: could not compile `espanso` (bin "espanso") due to 1 previous error
==> 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

danielvartan commented on 2025-11-11 01:36 (UTC) (edited on 2025-11-11 02:05 (UTC) by danielvartan)

[EDIT] The issue was caused by my keyboard configuration. Adding the following to ~/.config/espanso/config/default.yml fixed it.

keyboard_layout:
  layout: "us"
  variant: "intl"

I'm getting the following error. Any ideas?

  • Clean installation. No config.
  • Keyboard: English (US, intl., with dead keys)
> espanso start
unable to start service: timed out
Hint: sometimes this happens because another Espanso process is left running for some reason.
      Please try running 'espanso restart' or manually killing all Espanso processes, then try again.

(no Espanso process was running)

> espanso restart
espanso is not running!
unable to start service: timed out
Hint: sometimes this happens because another Espanso process is left running for some reason.
      Please try running 'espanso restart' or manually killing all Espanso processes, then try again.
> espanso log
22:35:00 [daemon(72445)] [INFO] reading configs from: "/home/danielvartan/.config/espanso"
22:35:00 [daemon(72445)] [INFO] reading packages from: "/home/danielvartan/.config/espanso/match/packages"
22:35:00 [daemon(72445)] [INFO] using runtime dir: "/home/danielvartan/.cache/espanso"
22:35:00 [daemon(72445)] [INFO] system info: Arch Linux v - kernel: 6.17.7-arch1-1
22:35:00 [daemon(72445)] [INFO] kdotool missing or not available for the current wayland DE.
22:35:00 [daemon(72445)] [INFO] watching for changes in path: /home/danielvartan/.config/espanso
22:35:00 [daemon(72445)] [INFO] espanso version: 2.3.0
22:35:00 [daemon(72445)] [INFO] spawning the worker process...
22:35:00 [daemon(72445)] [INFO] binded to IPC unix socket: /home/danielvartan/.cache/espanso/espansodaemonv2.sock
22:35:00 [worker(72453)] [INFO] reading configs from: "/home/danielvartan/.config/espanso"
22:35:00 [worker(72453)] [INFO] reading packages from: "/home/danielvartan/.config/espanso/match/packages"
22:35:00 [worker(72453)] [INFO] using runtime dir: "/home/danielvartan/.cache/espanso"
22:35:00 [worker(72453)] [INFO] system info: Arch Linux v - kernel: 6.17.7-arch1-1
22:35:00 [worker(72453)] [INFO] kdotool missing or not available for the current wayland DE.
22:35:00 [worker(72453)] [INFO] binded to IPC unix socket: /home/danielvartan/.cache/espanso/espansoworkerv2.sock
22:35:00 [worker(72453)] [INFO] no appropriate WaylandAppInfoProvider found for current DE/WM
22:35:00 [worker(72453)] [INFO] monitoring the status of the daemon process
22:35:00 [worker(72453)] [INFO] detection module will use this keyboard layout: [R=, M=, L=us+intl, V=, O=]
22:35:00 [worker(72453)] [INFO] using EVDEVSource
22:35:00 [worker(72453)] [ERROR] thread 'detect thread' panicked at 'unable to create xkb keymap: could not create xkb keymap': espanso-detect/src/evdev/mod.rs:128
22:35:00 [worker(72453)] [ERROR] thread 'engine thread' panicked at 'unable to receive from the init_rx channel: RecvError': espanso/src/cli/worker/engine/funnel/mod.rs:124
22:35:00 [worker(72453)] [ERROR] Unable to block the LinuxEventLoop: receiving on an empty and disconnected channel
22:35:00 [worker(72453)] [ERROR] thread 'main' panicked at 'unable to run main eventloop: receiving on an empty and disconnected channel': espanso/src/cli/worker/mod.rs:153
22:35:00 [daemon(72445)] [ERROR] received unexpected exit code from worker 101, exiting
> rustup update
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'

  stable-x86_64-unknown-linux-gnu unchanged - rustc 1.91.1 (ed61e7d7e 2025-11-07)

info: cleaning up downloads & tmp directories
info: self-update is disabled for this build of rustup
info: any updates to rustup will need to be fetched with your system package manager

Gorka commented on 2025-09-30 16:16 (UTC)

@carsme aura doesn't like something: :: espanso-x11-2.2.7-1 and espanso-wayland-2.2.7-1 are in conflict . doing sudo pacman -U <package> in aura's cache directory does work... I aura think it might be trying to install both?