[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


            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

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
  (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 ()),


gdk_display_get_default seems to use WAYLAND_DISPLAY if it exists.
Related issue in ibus:
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