feat: native Arch package with KDE/Wayland fixes#23
Open
BattleMage wants to merge 1 commit into
Open
Conversation
Adds `packaging/PKGBUILD`, a native build against the host `webkit2gtk-4.1`, for distributions where the prebuilt AppImage aborts with `EGL_BAD_PARAMETER` because its bundled GL/Wayland stack no longer matches recent Mesa. - `should_force_x11_backend` detects a Wayland session via `WAYLAND_DISPLAY`/`XDG_SESSION_TYPE` instead of `DISPLAY`, and leaves an explicit `GDK_BACKEND` untouched. - The tray panel anchors bottom-right when the tray icon rect is unavailable and dismisses on focus loss; the click-catcher overlay is disabled on Linux, where it stacked above the panel and swallowed clicks. - The Linux tray icon renders as a square image sized for the StatusNotifierItem slot instead of the wide macOS menu-bar layout. - Global shortcuts register through the XDG `GlobalShortcuts` portal via `ashpd` on Wayland, where `tauri-plugin-global-shortcut`'s X11 `XGrabKey` never fires; the X11 plugin path is kept otherwise.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Description
Adds
packaging/PKGBUILD, a native build against the hostwebkit2gtk-4.1, for distributions where the prebuilt AppImage aborts withEGL_BAD_PARAMETERbecause its bundled GL/Wayland stack no longer matches recent Mesa.should_force_x11_backenddetects a Wayland session viaWAYLAND_DISPLAY/XDG_SESSION_TYPEinstead ofDISPLAY, and leaves an explicitGDK_BACKENDuntouched.GlobalShortcutsportal viaashpdon Wayland, wheretauri-plugin-global-shortcut's X11XGrabKeynever fires; the X11 plugin path is kept otherwise.Related Issue
Type of Change
Testing
bun run buildand it succeededbun run testand all tests passbun tauri devChecklist
mainbranchNotes
The main concern of this change was to get openusage running on my Arch based system, as the AppImage did not work. No UI was changed, but some functionality was adjusted to better integrate with a Wayland/KDE workflow, e.g. the global keyboard setting wasn't working at all with the previous code.
It does introduce a new liability by adding a
PKGBUILDfile, but that was deliberately written as frictionless as possible and I integrated the maintenance of the file to the release workflow. The package version is the only value that needs maintenance.