Bugzilla – Bug 1222154
DISPLAY environment variable set incorrectly under Wayland
Last modified: 2024-05-22 05:19:54 UTC
When trying to run an X11 application from a Wayland session, I get an error message about being unable to open the display. E.g.,: $ xterm xterm: Xt error: Can't open display: wayland-0 Looking into it, it appears that the DISPLAY variable has the value "wayland-0" (same as WAYLAND_DISPLAY) instead of ":1". If I set DISPLAY to ":1", X11 applications run fine if started from the shell, but, obviously, not from the desktop. The problem appears with both Plasma and Gnome, so it doesn't appear to be a problem with a specific desktop. I tried switching from sddm to gdm, and the problem persisted, so it is not a problem with the display manager, either. I asked a friend, who is running Debian 12 with KDE 5.27.5, and on his environment DISPLAY is ":1", so this appears to be a configuration issue with Tumbleweed. I am running the nouveau driver on a GeForce GT 730 graphics card. Currently testing with Tumbleweed 20240327.
Seems to be fixed in 20240410.
(In reply to Kriton Kyrimis from comment #1) > Seems to be fixed in 20240410. Hi Kriton, would you please help to confirm whether the issue is fixed or not please? Thanks.
Confirmed. I've been a happy Wayland user since 20240410.
Thank you! Then I close here.