This affects me too:

## System

* **Ubuntu:** 26.04 (upgraded from 24.04)
* **Display manager:** GDM 50.0
* **Desktop:** GNOME Flashback (Metacity)
* **Session launcher:** `/usr/libexec/gdm-x-session`
* **X server:** `/usr/lib/xorg/Xorg`

## Symptom

Electron/Chromium applications incorrectly try to use Wayland and fail.

Example with Mullvad 2026.3:

Failed to connect to Wayland display
Failed to initialize Wayland platform
The platform failed to initialize.
Segmentation fault


## Evidence that the session is actually X11

echo $DISPLAY
:0

echo $WAYLAND_DISPLAY
# empty


Process tree:

gdm-session-worker
└── gdm-x-session
    └── Xorg

This is an X11 session.

## Incorrect session metadata

However:

echo $XDG_SESSION_TYPE
wayland


`loginctl` reports:


Type=wayland


even though the session is running through `gdm-x-session` and `Xorg`.

Also:

systemctl --user show-environment | grep XDG_SESSION_TYPE

returns

XDG_SESSION_TYPE=wayland


So the incorrect value has been imported into the user systemd environment.

## Additional oddity

`XDG_SESSION_ID` is empty:


although `loginctl` shows an active session (635).

## Confirmed workaround

Running:

XDG_SESSION_TYPE=x11 /opt/Mullvad\ VPN/mullvad-vpn


starts Mullvad correctly.

This strongly indicates Electron is choosing the backend solely from
`XDG_SESSION_TYPE`.

putting "export XDG_SESSION_TYPE=x11" in ~/.xessionrc seems to work
around the problem

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2150576

Title:
  [ubuntu-mate] XDG_SESSION_TYPE set wrong after upgrade to 26.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mate-desktop/+bug/2150576/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to