Trying to run KDE 6 + Wayland on FreeBSD 14.1

Hello to everyone.

I’m trying to run KDE 6 + Wayland on FreeBSD 14.1.

Using the parameters below :

#!/bin/sh

#export QT_DEBUG_PLUGINS=1
#export WAYLAND_DEBUG=1

export XDG_CONFIG_HOME="$HOME/.config"
export XDG_CACHE_HOME="$HOME/.cache"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_RUNTIME_DIR=/var/run/user/"$(id -u)"
export QT_WAYLAND_SHELL_INTEGRATION=xdg-shell
export XDG_SESSION_TYPE=xdg-shell
export QT_QPA_PLATFORMTHEME=qt5ct
export QT_QPA_PLATFORM=minimal
export WLR_NO_HARDWARE_CURSORS=1
export LIBSEAT_BACKEND=consolekit2

ck-launch-session dbus-run-session startplasma-wayland 2> startplasma.log

I get this output :

org.kde.startup: not a reply org.freedesktop.locale1 QDBusMessage(type=Error, service="", error name="org.freedesktop.DBus.Error.ServiceUnknown", error message="The name org.freedesktop.locale1 was not provided by any .service files", signature="s", contents=("The name org.freedesktop.locale1 was not provided by any .service files") )
dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service name='org.kde.KSplash' requested by ':1.0' (uid=1001 pid=1024 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated service 'org.kde.KSplash'
Initializing  "/usr/local/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_fonts.so"

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service name='org.freedesktop.portal.Desktop' requested by ':1.5' (uid=1001 pid=1029 comm="")

kf.kirigami.platform: Failed to find a Kirigami platform plugin for style ""

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service name='org.freedesktop.portal.Documents' requested by ':1.6' (uid=1001 pid=1037 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service name='org.freedesktop.impl.portal.PermissionStore' requested by ':1.7' (uid=1001 pid=1039 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated service 'org.freedesktop.impl.portal.PermissionStore'

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated service 'org.freedesktop.portal.Documents'

fuse: unknown option(s): `-o auto_unmount'
error: fuse init failed: Can't create fuse session

(/usr/local/libexec/xdg-desktop-portal:1037): xdg-desktop-portal-WARNING **: 15:03:41.378: Failed to load RealtimeKit property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.RealtimeKit1 was not provided by any .service files

(/usr/local/libexec/xdg-desktop-portal:1037): xdg-desktop-portal-WARNING **: 15:03:41.378: Failed to load RealtimeKit property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.RealtimeKit1 was not provided by any .service files

(/usr/local/libexec/xdg-desktop-portal:1037): xdg-desktop-portal-WARNING **: 15:03:41.379: Failed to load RealtimeKit property: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.RealtimeKit1 was not provided by any .service files

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service name='org.freedesktop.impl.portal.desktop.kde' requested by ':1.6' (uid=1001 pid=1037 comm="")

No backend specified, automatically choosing drm

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated service 'org.freedesktop.impl.portal.desktop.kde'

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service name='org.gtk.vfs.Daemon' requested by ':1.6' (uid=1001 pid=1037 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated service 'org.gtk.vfs.Daemon'

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service name='org.gtk.vfs.UDisks2VolumeMonitor' requested by ':1.6' (uid=1001 pid=1037 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated service 'org.gtk.vfs.UDisks2VolumeMonitor'

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service name='org.gtk.vfs.MTPVolumeMonitor' requested by ':1.6' (uid=1001 pid=1037 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated service 'org.gtk.vfs.MTPVolumeMonitor'

dbus-daemon[1023]: [session uid=1001 pid=1023] Activating service name='org.gtk.vfs.GPhoto2VolumeMonitor' requested by ':1.6' (uid=1001 pid=1037 comm="")

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated service 'org.gtk.vfs.GPhoto2VolumeMonitor'

(/usr/local/libexec/xdg-desktop-portal:1037): xdg-desktop-portal-WARNING **: 15:03:41.496: Failed connect to PipeWire: Couldn't connect to PipeWire

(/usr/local/libexec/xdg-desktop-portal:1037): xdg-desktop-portal-WARNING **: 15:03:41.501: Choosing kwallet.portal for org.freedesktop.impl.portal.Secret via the deprecated UseIn key

(/usr/local/libexec/xdg-desktop-portal:1037): xdg-desktop-portal-WARNING **: 15:03:41.501: The preferred method to match portal implementations to desktop environments is to use the portals.conf(5) configuration file

dbus-daemon[1023]: [session uid=1001 pid=1023] Successfully activated service 'org.freedesktop.portal.Desktop'

Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
No backend specified, automatically choosing drm
Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context

No backend specified, automatically choosing drm

Unable to determine system time zone: please check your system configuration.
kwin_screencast: Failed to connect PipeWire context
org.kde.startup: "kdeinit5_shutdown" QList() exited with code 255
Initializing  "/usr/local/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_style.so"
startplasma-wayland: Shutting down...
startplasmacompositor: Shutting down...
startplasmacompositor: Done.

A connection to the bus can't be made

/usr/local/bin/xrdb: Connection refused
/usr/local/bin/xrdb: Can't open display ':0'
/usr/local/bin/xsetroot:  unable to open display ':0'

Initializing  "/usr/local/lib/qt6/plugins/plasma/kcms/systemsettings/kcm_mouse.so"
kcm_mouse: Not able to select appropriate backend.

Maybe they can be fixed using the proper parameters. Can someone help me ? thanks.