Bug 1222154 - DISPLAY environment variable set incorrectly under Wayland
Summary: DISPLAY environment variable set incorrectly under Wayland
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other openSUSE Tumbleweed
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-29 09:02 UTC by Kriton Kyrimis
Modified: 2024-05-22 05:19 UTC (History)
1 user (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.