Skip to content

AppImage: prefer Wayland backend, fall back to x11#21223

Open
anoderay wants to merge 1 commit into
darktable-org:masterfrom
anoderay:fix-appimage-wayland-backend
Open

AppImage: prefer Wayland backend, fall back to x11#21223
anoderay wants to merge 1 commit into
darktable-org:masterfrom
anoderay:fix-appimage-wayland-backend

Conversation

@anoderay
Copy link
Copy Markdown
Collaborator

@anoderay anoderay commented Jun 2, 2026

Trying to fix #21214 with generous help from claude.

The linuxdeploy GTK plugin hardcodes GDK_BACKEND=x11 as a workaround for older crashes. Darktable supports Wayland natively, so override this setting after the plugin runs. GTK will automatically fall back to x11 if no Wayland compositor is available.

As far as I understand this makes sense. I re-compiled the AppImage and it correctly launches into wayland. Also tried the AppImage in a Linux Mint XFCE VM and it doesn't break launching there.

It does however break launching darktable with GDK_BACKEND=x11 to force into x11 on wayland. Which I suppose is a corner case maybe not worth supporting.

The linuxdeploy GTK plugin hardcodes GDK_BACKEND=x11 as a workaround
for older crashes. Darktable supports Wayland natively, so override
this setting after the plugin runs. GTK will automatically fall back
to x11 if no Wayland compositor is available.
@TurboGit TurboGit requested a review from victoryforce June 2, 2026 15:16
@TurboGit
Copy link
Copy Markdown
Member

TurboGit commented Jun 2, 2026

@anoderay : I've asked @victoryforce to have a look as he is our AppImage expert.

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.

darktable appimage defaults to x11/xwayland

2 participants