You are not logged in.

#1 2024-12-17 15:55:35

foobat
Member
Registered: 2021-02-13
Posts: 28

How to force an application to run under XWayland in a Wayland session

I am using plasma Wayland sessions daily. However, some of the apps I'm using, especially eclipse based IDEs, have poor native wayland support. Problems include wrong text and icon sizes, etc . So I want them to run under xwayland.

I tried export GDK_BACKEND=X11. However, this causes the applications to panic that cannot open display.

I also tried unset WAYLAND_DISPLAY, to make the apps ignore the wayland server and fall back to X11. However, even the environment variable WAYLAND_DISPLAY is unset, the applications still uses native wayland instead of xwayland.

Is there any methods independent of DEs, WMs and GUI toolkits that can force a GUI app to run under xwayland? For example, by making the wayland server undetectable for that app, and making the xwayland xserver detectable.

Offline

#2 2024-12-17 16:34:05

seth
Member
Registered: 2012-09-03
Posts: 60,776

Re: How to force an application to run under XWayland in a Wayland session

I tried export GDK_BACKEND=X11. However, this causes the applications to panic that cannot open display.

printenv

Can you run "xterm" on the wayland desktop (which will run on X11 no matter what wink

Offline

#3 2024-12-18 05:38:26

foobat
Member
Registered: 2021-02-13
Posts: 28

Re: How to force an application to run under XWayland in a Wayland session

seth wrote:

I tried export GDK_BACKEND=X11. However, this causes the applications to panic that cannot open display.

printenv

Can you run "xterm" on the wayland desktop (which will run on X11 no matter what wink

Yes. X11 apps like xterm and electron apps works normally. However, if export GDK_BACKEND=X11, then GTK based apps panic that cannot open display, even if $DISPLAY is correctly set.

Offline

#4 2024-12-18 08:12:20

seth
Member
Registered: 2012-09-03
Posts: 60,776

Re: How to force an application to run under XWayland in a Wayland session

GTK based apps panic that cannot open display

Please don't paraphrase, https://bbs.archlinux.org/viewtopic.php?id=57855
Might be an xauth issue.

Offline

Board footer

Powered by FluxBB