Wrong $DISPLAY under Xwayland

Bug #2001686 reported by Geert Uytterhoeven
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mate-terminal (Ubuntu)
New
Undecided
Unassigned

Bug Description

After upgrading from Ubuntu 20.04 LTS to 22.04.1 LTS (which switches from Xorg to Xwayland), it is no longer possible to launch local X applications, or to use X forwarding with ssh -X.

    $ xlsclients
    xlsclients: unable to open display "wayland-0"

Inside mate-terminal under Xwayland:
    $ echo DISPLAY=$DISPLAY; echo WAYLAND_DISPLAY=$WAYLAND_DISPLAY
    DISPLAY=wayland-0
    WAYLAND_DISPLAY=wayland-0

Inside gnome-terminal under Xwayland:
    $ echo DISPLAY=$DISPLAY; echo WAYLAND_DISPLAY=$WAYLAND_DISPLAY
    DISPLAY=:0
    WAYLAND_DISPLAY=wayland-0

Disabling Wayland (set WaylandEnable=false in /etc/gdm3/custom.conf) fixes the issue.

mate-terminal version: 1.26.0-1ubuntu2

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.