mirror of
https://github.com/aaddrick/claude-desktop-debian.git
synced 2026-05-17 08:36:35 +03:00
fix: export GDK_BACKEND=wayland in native Wayland mode (#397)
When the launcher runs in native Wayland mode (CLAUDE_USE_WAYLAND=1 or forced by compositor), it sets the correct Electron ozone flags but does not override GDK_BACKEND. A system-wide or session-level GDK_BACKEND=x11 then silently wins, causing GTK to connect via XWayland and producing blurry rendering on HiDPI displays. Export GDK_BACKEND=wayland in the native Wayland branch of build_electron_args() so the ozone flags and GDK backend stay in sync.
This commit is contained in:
@@ -104,6 +104,10 @@ build_electron_args() {
|
||||
electron_args+=('--ozone-platform=wayland')
|
||||
electron_args+=('--enable-wayland-ime')
|
||||
electron_args+=('--wayland-text-input-version=3')
|
||||
# Override any system-wide GDK_BACKEND=x11 that would silently
|
||||
# prevent GTK from connecting to the Wayland compositor, causing
|
||||
# blurry rendering or launch failures on HiDPI displays.
|
||||
export GDK_BACKEND=wayland
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user