$ flatpak run com.discordapp,Discord F: Not replacing "/run" with tmpfs: Path "/run/flatpak" is reserved by Flatpak Disabling updates already done Discord 0.0.118 [5:1210/125819.115705:ERROR:ui/ozone/platform/x11/ozone_platform_x11.cc:250] Missing X server or SDISPLAY [5:1210/125819.115778:ERROR:ui/aura/env.cc:257] The platform failed to initialize. Exiting. (core dumped) env TMPDIR="$(XDG_CACHE_HOME)" zypak-wrapper / /app/bin/com.discordapp.Discord: line 36: 5 Segmentation fault app/discord/Discord --enable-speech-dispatcher "S(FLAGS[@])" "$0" 2025/12/10 12:58:19 socat[3] W exiting on signal 15
#Discord not working when I run the flatpak run discord command, error I get is written below👇
1 messages · Page 1 of 1 (latest)
The Discord flatpak is written in Electron, have you followed the steps on the FAQ about getting Electron apps to work?
Yeah, I have remove hardening, the LD preload thing, ujust xwayland too and enabled x11 windowing system
It didn't work
i am using vesktop, another client which seems to work ok.
I have losslesscut flatpak too
It gives same error
Why is this happening
This should not happen
are you sure xwayland is actually running?
ps aux | grep Xwayland
and what image are you on
also echo $DISPLAY
@astral field
Better option would be to tell electron to use wayland
See https://github.com/ente-io/ente/discussions/6605 as an example
GitHub
By default it seems the Flatpak uses x11 by default. It would be nice to support the Wayland and fallback to x11 in the absence of it being available. I managed to get it working under Wayland on B...
From a security standpoint, It's definitely a better solution to tell an application to use Wayland instead of enabling xwayland for the whole OS.
Wait, what permissions did you grant discord?
Discord has a hard dependency on x11