#Discord not working when I run the flatpak run discord command, error I get is written below👇

1 messages · Page 1 of 1 (latest)

astral field
#

$ 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

coral karma
#

The Discord flatpak is written in Electron, have you followed the steps on the FAQ about getting Electron apps to work?

astral field
#

Yeah, I have remove hardening, the LD preload thing, ujust xwayland too and enabled x11 windowing system

astral field
#

It didn't work

proven gyro
#

i am using vesktop, another client which seems to work ok.

astral field
#

I have losslesscut flatpak too

#

It gives same error

#

Why is this happening

#

This should not happen

neat spoke
#

are you sure xwayland is actually running?

#

ps aux | grep Xwayland

#

and what image are you on

#

also echo $DISPLAY

#

@astral field

graceful swift
graceful swift
#

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.

odd rain
#

Wait, what permissions did you grant discord?

odd rain
odd rain
#

What I mean is you shouldnt be granting all permissions. Did you grant it access to fallback-x11? If so, do not

#

Just x11 and wayland