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
Nowadays x11-toolkits/wlroots supports LIBSEAT in addition to CONSOLEKIT but I don't think Greg has abandoned CONSOLEKIT yet.
Let me quote:
Yeah, CK2 has been abandoned for quite some time.
I'll look into seatd and/or other solutions (writing a logind in rust? hehehe), sure. But as long as we do have CK2 in ports, I think it kinda makes sense to make it more fully functional. Even if we abandon my wlroots patch, another interesting consumer is KDE KWin. Last time I touched it, I was able to get to a splash/lock screen..