Skip to content

re-add snap support - #2434

Merged
AucaCoyan merged 1 commit into
espanso:devfrom
slapcat:dev
Nov 18, 2025
Merged

AucaCoyan merged 1 commit into
espanso:devfrom
slapcat:dev

Conversation

@slapcat

@slapcat slapcat commented Aug 12, 2025

Copy link
Copy Markdown
Contributor

Related to #2387.

I've updated the old snapcraft recipe to be based on core24 instead of core18.

There is also a workflow to publish the snap to the candidate and/or edge channel. For this to work, you'll need to add the snap store login info as a repository secret called STORE_LOGIN. Instructions can be found here.

It appears the current owner of the snap in the store is @federico-terzi: https://snapcraft.io/espanso

Signed-off-by: Jake Nabasny <[email protected]>
@slapcat
slapcat requested a review from AucaCoyan as a code owner August 12, 2025 21:42
@AucaCoyan

Copy link
Copy Markdown
Collaborator

Hey! thank you so much for submitting a PR 😄 . To land this I have some questions. We may merge it anyways and resolve this on the future, but at least those are starting points:

  • this is based on the dev branch, which is a little more unstable than releases (quarterly). If snap users are okay with that, no problem! otherwise if they want something a bit more stable I would recommend installing as an AppImage or a deb package. Another path we could take is adding this build step into create-release-draft.yml that makes everything and then I review the results and publish the release.
  • espanso has 2 builds, wayland and x11. The default flags are for x11. Both builds are incompatible with each other. I assume snaps are used everywhere (any flavour of ubuntu), so that would mean that either the snap should have "two versions", or to know which one install based on the desktop environment of the user
  • about snap/hooks/remove. espanso service unregister removes the systemd service 🤔 . I wonder if you can run espanso service unregister before uninstalling it. Does that solve the issue?
  • lastly a really dumb question: did you tried the app? 😄 do you like it and worked well?

Thanks!

@stew3254

Copy link
Copy Markdown

@AucaCoyan it seems to be working for me on X11 (using awesome-wm). @slapcat had provided the snap to me.

I did have an issue with one of the packages not working within the snap, but after his investigation, it looks like it might be related to this issue.

Regarding the issues mentioned if I'm able to give my two cents:

  1. It would be nice if we could have both dev and stable. You can create different snap channels for that.
  2. Again, channels could be used to differentiate between X11 and Wayland if they're incompatible
  3. Probably
  4. Love espanso and use it heavily!

@slapcat

slapcat commented Aug 13, 2025

Copy link
Copy Markdown
Contributor Author

Thanks for looking this over @AucaCoyan!

I resolved the package issue that @stew3254 mentioned, so now the snap can be installed without dependencies and just works on X11. Regarding your other points:

  • The workflow I made will publish all changes to the "edge" channel and tagged releases to the "candidate" channel. Stable candidate versions can be manually promoted to the "stable" channel after testing. This is a common snap release cycle, but feel free to adjust if it doesn't suit you. (We may also be able to add a promotion step to create-release-draft.yml in order to automate that process.)
  • Following the previous snap recipe, this one only builds for X11. I can modify it to build both for X11 and Wayland, but there isn't currently a track for Wayland on the snap store, so we can't release two different builds of the snap currently. Adding a track is non-trivial because a request needs to be raised and voted on. This should probably be done by the owner of the snap (the creator of espanso).
  • The disclaimer in snap/hooks/remove is still valid. The same problem occurs if you try to run espanso service register on install. The snap hook runs it as root and it fails. I'd be happy to investigate a workaround to this if snap support is restored.
  • Yes! @stew3254, myself, and many of our colleagues rely on espanso everyday. I built a snap of the latest version based on the snapcraft.yaml submitted here and it has been working well the past couple days.

@slapcat

slapcat commented Sep 2, 2025

Copy link
Copy Markdown
Contributor Author

@AucaCoyan Please let me know if you need anything else in order to merge this PR!

@AucaCoyan

Copy link
Copy Markdown
Collaborator

Hey Slapcat! Sorry for the delay 😓 . I had a busy time 15 days ago, then macOS decided to stop compiling, and now the release is also not signed, so it's un-runnable from the Applications folder.

I promise that as soon as I get a little rest from this I'll come back with this 💯 . Thank you so much for the patience!

@AucaCoyan
AucaCoyan merged commit 16fee20 into espanso:dev Nov 18, 2025
@AucaCoyan

Copy link
Copy Markdown
Collaborator

Hey! Sorry again for the delay, there was much turmoil with the few last releases (especially in macOS).
I tasked myself to investigate the snap ecosystem, and submmit a different snapcraft.yaml, so we have normal "production" images in snapcraft instead of dev commit, but I coudn't do it.

Instead of stalling even more the PR, I decided to merge it right away and fix the problem in the future, at least you can benefit from having a development snap image, instead of having nothing at all 😢 .

Again, forgive me for the delay!

@slapcat

slapcat commented Nov 19, 2025

Copy link
Copy Markdown
Contributor Author

@AucaCoyan thanks so much!! This is a big help. I'm happy to help with whatever you need to get the production snap updated. Just let me know.

As mentioned above, I can also update the snapcraft to build snaps for Wayland, but the channels will need to be requested by the maintainer. If you can get those setup, I can update build recipe.

sboldt1978 pushed a commit to sboldt1978/espanso that referenced this pull request Feb 11, 2026
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.

3 participants