Skip to content

flatpak: expose X11 socket unconditionally to allow clipboard fallback#27

Merged
sofiageo merged 1 commit into
lemonade-sdk:mainfrom
abn:fix/clipboard
Jun 17, 2026
Merged

flatpak: expose X11 socket unconditionally to allow clipboard fallback#27
sofiageo merged 1 commit into
lemonade-sdk:mainfrom
abn:fix/clipboard

Conversation

@abn

@abn abn commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

On Wayland hosts, Tauri's clipboard manager (via the 'arboard' crate) attempts to initialize its Wayland backend. However, it relies on the Wayland data-control protocols (ext-data-control-v1 or wlr-data-control-unstable-v1), which are not supported by the GNOME compositor (Mutter).

When native Wayland clipboard initialization fails, 'arboard' attempts to fall back to X11 (XWayland). With '--socket=fallback-x11', Flatpak completely hides the X11 socket since a Wayland display was available on the host, causing the fallback to fail and disabling the clipboard entirely.

Exposing the X11 socket unconditionally via '--socket=x11' ensures that the XWayland display is always accessible in the sandbox, allowing the clipboard copy operations to succeed.

On Wayland hosts, Tauri's clipboard manager (via the 'arboard' crate) attempts to initialize its Wayland backend. However, it relies on the Wayland data-control protocols (ext-data-control-v1 or wlr-data-control-unstable-v1), which are not supported by the GNOME compositor (Mutter).

When native Wayland clipboard initialization fails, 'arboard' attempts to fall back to X11 (XWayland). With '--socket=fallback-x11', Flatpak completely hides the X11 socket since a Wayland display was available on the host, causing the fallback to fail and disabling the clipboard entirely.

Exposing the X11 socket unconditionally via '--socket=x11' ensures that the XWayland display is always accessible in the sandbox, allowing the clipboard copy operations to succeed.
@sofiageo sofiageo merged commit 53a5d57 into lemonade-sdk:main Jun 17, 2026
7 checks passed
@abn abn deleted the fix/clipboard branch June 17, 2026 19:41
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.

2 participants