Several flatpaks and snaps stopped working (x11/wayland problem?)

After updating the system and all the flatpaks and snaps, many of them don’t start anymore.
I’m now on TW 20260420, using XFCE.

The broken flatpaks output:

[2:0422/081644.939752:ERROR:dbus/bus.cc:408] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
[2:0422/081645.111119:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
[2:0422/081645.111157:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:282] Failed to initialize Wayland platform
[2:0422/081645.112216:ERROR:ui/aura/env.cc:257] The platform failed to initialize.  Exiting.
[0422/081645.115270:ERROR:third_party/crashpad/crashpad/util/linux/scoped_ptrace_attach.cc:27] ptrace: Operation not permitted (1)

I found a similar report over at Fedora (https://discussion.fedoraproject.org/t/flatpak-wont-launch-x11-apps-anymore-but-native-apps-work-with-xwayland/184792), but adding --nosocket=wayland --nosocket=fallback-x11 --socket=x11 to the flatpak command line made no change

For snaps I had a similar problem:

snap log
/usr/share/libdrm/amdgpu.ids: No such file or directory
NODE_ENV production
NODE_CONFIG_DIR /snap/signal-desktop/894/opt/Signal/resources/app.asar/config
NODE_CONFIG {}
ALLOW_CONFIG_MUTATIONS undefined
HOSTNAME medan
NODE_APP_INSTANCE undefined
SUPPRESS_NO_CONFIG_WARNING undefined
SIGNAL_ENABLE_HTTP undefined
userData: /home/sebastianw/snap/signal-desktop/894/.config/Signal
Error org.freedesktop.DBus.Error.Failed: cannot set "default-url-scheme-handler" subproperty "sgnl" setting: 
-----
stderr:
xdg-settings: default-url-scheme-handler not implemented for xfce
-----
Error org.freedesktop.DBus.Error.Failed: cannot set "default-url-scheme-handler" subproperty "signalcaptcha" setting: 
-----
stderr:
xdg-settings: default-url-scheme-handler not implemented for xfce
-----
[100144:0422/083907.008932:ERROR:ui/ozone/platform/wayland/host/wayland_connection.cc:202] Failed to connect to Wayland display: No such file or directory (2)
[100144:0422/083907.008978:ERROR:ui/ozone/platform/wayland/ozone_platform_wayland.cc:282] Failed to initialize Wayland platform
[100144:0422/083907.009032:ERROR:ui/aura/env.cc:257] The platform failed to initialize.  Exiting.

Which I was able to solve with the parameter --ozone-platform=x11.

Both have in common that they now want to connect to wayland, although it is not in use on Xfce.

Does anyone have an idea how to force the flatpaks into X11-mode?

Adding --env=XDG_SESSION_TYPE=x11 to the command line of all affected flatpak programs solved the issue.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.