Bug 1222154

Summary: DISPLAY environment variable set incorrectly under Wayland
Product: [openSUSE] openSUSE Tumbleweed Reporter: Kriton Kyrimis <kyrimis>
Component: OtherAssignee: E-mail List <screening-team-bugs>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: kyrimis
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE Tumbleweed   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Kriton Kyrimis 2024-03-29 09:02:28 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.
Comment 1 Kriton Kyrimis 2024-04-12 05:39:36 UTC
Seems to be fixed in 20240410.
Comment 2 Chenzi Cao 2024-05-21 14:28:02 UTC
(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.
Comment 3 Kriton Kyrimis 2024-05-22 04:53:22 UTC
Confirmed.

I've been a happy Wayland user since 20240410.
Comment 4 Chenzi Cao 2024-05-22 05:19:54 UTC
Thank you! Then I close here.