I eradicated the faulty software from my system. Don’t know, and don’t want, to reproduce it.
root@system-4:~# snap run obsidian --enable-features=UseOzonePlatform --ozone-platform=wayland
2025-01-06 18:45:04 Loading main app package /snap/obsidian/40/resources/obsidian.asar
Ignored: Error: ENOENT: no such file or directory, open ‘/root/snap/obsidian/40/.config/obsidian/obsidian.json’
error: XDG_RUNTIME_DIR is invalid or not set in the environment.
[7902:0106/184504.517441:ERROR:wayland_connection.cc(198)] Failed to connect to Wayland display: No such file or directory (2)
[7902:0106/184504.517742:ERROR:ozone_platform_wayland.cc(264)] Failed to initialize Wayland platform
[7902:0106/184504.517756:ERROR:env.cc(258)] The platform failed to initialize. Exiting.
Segmentation fault (core dumped)
root@system-4:~# snap run obsidian --enable-features=UseOzonePlatform --ozone-platform=wayland
/root/Desktop was removed, reassigning DESKTOP to homedir
/root/Downloads was removed, reassigning DOWNLOAD to homedir
/root/Templates was removed, reassigning TEMPLATES to homedir
/root/Public was removed, reassigning PUBLICSHARE to homedir
/root/Documents was removed, reassigning DOCUMENTS to homedir
/root/Music was removed, reassigning MUSIC to homedir
/root/Pictures was removed, reassigning PICTURES to homedir
/root/Videos was removed, reassigning VIDEOS to homedir
Install Obsidian on Linux | Snap Store. As for the rest, read the bug report. It’s a known KDE bug, and it seems that the devs need to include/use the fix.
If it is any help, the flatpak has a similar error.
Debug: Will run Obsidian with the following arguments:
Debug: Additionally, user gave:
[13:0211/063305.103885:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory
2025-02-11 05:33:05 Loading main app package /app/resources/obsidian.asar
LaunchProcess: failed to execvp:
xdg-settings
[13:0211/063305.267543:ERROR:wayland_connection.cc(205)] Failed to connect to Wayland display: No such file or directory (2)
[13:0211/063305.267569:ERROR:ozone_platform_wayland.cc(264)] Failed to initialize Wayland platform
[13:0211/063305.267574:ERROR:env.cc(258)] The platform failed to initialize. Exiting.
/app/bin/obsidian.sh: line 61: 13 Segmentation fault (core dumped) zypak-wrapper /app/obsidian $@ ${EXTRA_ARGS[@]}```
This seems to me, like the Obsidian switched to wayland by default, but the flatpak (and snap) packages don’t count on this. As for flatpak, @lhcamilo you can fix this before maintainers do by settings sockets in flatseal - turn off x11 and turn on wayland and fallback-x11. I assume for snap something like this should be possible too.
@WhiteNoise can you forward this to the packaging team?