feat: add Flatpak packaging support#548
Open
GabeDuarteM wants to merge 19 commits intocjpais:mainfrom
Open
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before Submitting This PR
Please confirm you have done the following:
Human Written Description
Added Flatpak support and CI infrastructure to build it, implement an autostart module to add support for flatpak (The exec of the .desktop files are slightly different from the existing ones, so we needed to adapt), implemented some checks to make sure the tray icons also work on flatpak, enabled enigo only when we're in x11 (otherwise the app was failing to start on wayland's flatpak).
Also had to change the CSS for the close icon on "visual feedback overlay", since on flatpak occasionally it would spawn two close icons, one where it should be, and another one outside the pill. I couldn't figure out why, and it wasn't consistently happening too, so I hid the render of whatever is outside the pill. My theory is that it may be related to
WEBKIT_DISABLE_DMABUF_RENDERER=1, but without it the whole app doesn't render at all, just a black/white screen (depending on your dark settings config)We still need to do some work on the manifest to add some screenshots and maybe wire the changelog into it, then we can submit it to flathub
Related Issues/Discussions
Discussion: #254
Community Feedback
#254
Testing
If you wanna help testing locally, you can run:
bun run tauri build --bundles deb./scripts/build-flatpak.shflatpak install --user handy_0.6.10_x86_64.flatpakflatpak run com.pais.handyScreenshots/Videos (if applicable)
2026-01-07.11-21-31.mp4