This makes it possible to launch a Wayland compositor using ConsoleKit2 as the session controller.
huh. So I tried it, ck works fine, KWin however wasn't actually ported to FreeBSD…
I made an attempt: https://reviews.freebsd.org/differential/diff/52600/ — it starts up, but
- input devices aren't attached — I'm not seeing anywhere in the code where it would enumerate subsystem=input, how does KDE attach input devices?! o_0
- doesn't like my GPU — after starting, there's the splash screen, then black screen for a long time (and amdgpu spam in dmesg), but after a couple minutes the lockscreen appeared! :)
deviceFromSyspath("/dev/dri/card0") is actually not necessary anymore! card enumeration seems to work fine since https://github.com/FreeBSDDesktop/libudev-devd/commit/f11ee5b418c740ba6fd4c946ab10b0d89702e4d0