Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • libxfce4ui libxfce4ui
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • XfceXfce
  • libxfce4uilibxfce4ui
  • Issues
  • #13
Closed
Open
Issue created Aug 22, 2019 by Bugzilla Migration@bugzilla-migration

xfce4-appfinder sets DISPLAY incorrectly for child applications in a Wayland session.

Submitted by PMo..@..di.net

Assigned to Xfce Bug Triage

Link to original bug (#15865)

Description

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.

Version: 4.12.1

Assignee
Assign to
Time tracking