From d10a9b16b2a3ee28433f3d1c603f4e9f1fecb8e1 Mon Sep 17 00:00:00 2001 From: Nathan Henrie Date: Fri, 21 Nov 2025 11:06:12 -0700 Subject: [PATCH] espanso: fix accessibility permissions prompt for macos (#8180) On macos 26 it seems that one has to run the binary from within the application bundle to get the Accessibility prompt to work as expected fixes https://github.com/nix-community/home-manager/issues/8179 --- modules/services/espanso.nix | 2 +- tests/modules/services/espanso/darwin/launchd.plist | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/espanso.nix b/modules/services/espanso.nix index 0063ae50..34e45f4d 100644 --- a/modules/services/espanso.nix +++ b/modules/services/espanso.nix @@ -205,7 +205,7 @@ in enable = true; config = { ProgramArguments = [ - "${cfg.package}/bin/espanso" + "${cfg.package}/Applications/Espanso.app/Contents/MacOS/espanso" "launcher" ]; EnvironmentVariables.PATH = "${cfg.package}/bin:/usr/bin:/bin:/usr/sbin:/sbin"; diff --git a/tests/modules/services/espanso/darwin/launchd.plist b/tests/modules/services/espanso/darwin/launchd.plist index ac8ff53e..a38c6f2c 100644 --- a/tests/modules/services/espanso/darwin/launchd.plist +++ b/tests/modules/services/espanso/darwin/launchd.plist @@ -18,7 +18,7 @@ org.nix-community.home.espanso ProgramArguments - @espanso@/bin/espanso + @espanso@/Applications/Espanso.app/Contents/MacOS/espanso launcher RunAtLoad