Skip to content

Post installation script for setting capabilities - #2405

Merged
AucaCoyan merged 3 commits into
devfrom
post-installation-script-for-setcap
Jul 27, 2025
Merged

AucaCoyan merged 3 commits into
devfrom
post-installation-script-for-setcap

Conversation

@AucaCoyan

Copy link
Copy Markdown
Collaborator

fix #2172

This modifies the .deb package only on the Wayland variant.
When the package is installed, it runs a post script install that automatically runs

setcap "cap_dac_override+p" $(which espanso)

For you.

note

It is also possible to manage systemd service files via cargo-deb. I was about to do it but it's significantly more effort than this, and again, only possible for the .deb package. On the AppImage you still need to run espanso service register. It's a small gain

@AucaCoyan
AucaCoyan merged commit aecf1c8 into dev Jul 27, 2025
@AucaCoyan
AucaCoyan deleted the post-installation-script-for-setcap branch July 27, 2025 20:41
sboldt1978 pushed a commit to sboldt1978/espanso that referenced this pull request Feb 11, 2026
* 🔨 add scripts to build the .deb package

* ✨ automatically set capabilites with .deb installation

* 🎨 Format the *.nix files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automate sudo setcap "cap_dac_override+p" $(which espanso) for Wayland deb pkgs

1 participant