Without X11 and XWayland and with XDG_SESSION_TYPE unset, all electron apps just crash with a weird technical error message
Author: ell1eCreated Sep 25, 2026Updated Sep 28, 2026
Labelsplatform/linuxbug :beetle:
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
seems to affect a variety of them, I'm not sure which one is shipped in the affected programs
What operating system(s) are you using?
Other Linux
Operating System Version
postmarketOS Edge (Linux)
What arch are you using?
Other (specify below)
Last Known Working Electron version
No response
Does the issue also appear in Chromium / Google Chrome?
I don't know how to test
Expected Behavior
Electron should obviously just use the Wayland socket. It has the ability to do so, without a user messing around with environment variables.
Actual Behavior
Without X11 and XWayland, all electron apps just crash with a weird technical error message:
$ flatpak run chat.delta.desktop
Logfile: /home/ellie/.var/app/chat.delta.desktop/config/DeltaChat/logs/2026-09-25-14-05-43.log
[2:0925/140543.213314:ERROR:ui/ozone/platform/x11/ozone_platform_x11.cc:257] Missing X server or $DISPLAY
[2:0925/140543.213344:ERROR:ui/aura/env.cc:246] The platform failed to initialize. Exiting.
$This affects a wide array of applications, including e.g. FreeTube and DeltaChat Desktop.
Testcase Gist URL
No response
Additional Information
This happens on both ARM64 and x64 systems, I tried both.
Source: electron/electron