[Xfce-bugs] [Bug 15865] New: xfconfd sets DISPLAY incorrectly in a Wayland session.
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Thu Aug 22 05:07:01 CEST 2019
https://bugzilla.xfce.org/show_bug.cgi?id=15865
Bug ID: 15865
Summary: xfconfd sets DISPLAY incorrectly in a Wayland session.
Classification: Xfce Core
Product: Xfconf
Version: 4.14.1
Hardware: PC (x86_64)
OS: Linux
Status: NEW
Severity: normal
Priority: Medium
Component: Xfconfd
Assignee: xfce-bugs at xfce.org
Reporter: PMo_ at vivaldi.net
Target Milestone: Xfce 4.12
Refer #12867. xfce4-terminal should have DISPLAY set to Xwayland's screen
number.
Steps to reproduce:
- Log onto a Sway session (or other Wayland session?)
- (optional) Launch xfconfd
- Launch xfce4-appfinder (if xfconfd was not launched: forks xfconfd, which
relaunches xfce4-appfinder)
- Launch a program using xfce4-appfinder
Expected result:
- The program will have "DISPLAY=<Xwayland's X11 Screen number>" in its
environment
(For example: ":0" or ":1")
Actual result:
- The program will have 'DISPLAY=<value of WAYLAND_DISPLAY>' in its environment
(For example: "wayland-0")
After digging for anywhere DISPLAY was changed, I found this:
/* pass correct DISPLAY to children, in case of --display in argv */
g_setenv ("DISPLAY", gdk_display_get_name (gdk_display_get_default ()),
TRUE);
=== SPECULATION: ===
gdk_display_get_default seems to use WAYLAND_DISPLAY if it exists.
Related issue in ibus:
https://github.com/ibus/ibus/commit/ffdcc6cd1368143b77e6f535e90974651575b02e
I am not well versed in gdk/gtk, so this remains just speculation.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list