Page MenuHomeFreeBSD

handbook: Update instructions for starting ConsoleKit
ClosedPublic

Authored by arrowd on Dec 26 2023, 4:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Feb 8, 1:31 AM
Unknown Object (File)
Sat, Feb 1, 5:10 AM
Unknown Object (File)
Jan 29 2025, 2:21 AM
Unknown Object (File)
Jan 28 2025, 11:06 PM
Unknown Object (File)
Jan 5 2025, 3:51 PM
Unknown Object (File)
Dec 11 2024, 9:56 AM
Unknown Object (File)
Dec 6 2024, 2:18 AM
Unknown Object (File)
Nov 26 2024, 7:31 AM
Subscribers

Diff Detail

Repository
R9 FreeBSD doc repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

arrowd created this revision.
This revision is now accepted and ready to land.Dec 26 2023, 6:57 PM
jbeich added inline comments.
documentation/content/en/books/handbook/wayland/_index.adoc
78

Looks incorrect. --exit-with-x11 may not work under Wayland because kwin_wayland (via startplasma-wayland) hasn't started yet thus Xwayland hasn't created X11 socket. Also, ck-launch-session creates XDG_RUNTIME_DIR that DBus may want to read service activation files from or (non-default) place its socket in.

$ env -u DISPLAY XDG_RUNTIME_DIR=$(mktemp -dt xdg-run) dbus-launch --exit-with-x11 ls
Session lifetime based on X11 requested, but X11 initialization failed.

$ su root -c "sed -i '' 's,<busconfig>,&<listen>unix:runtime=yes</listen>,' /usr/local/etc/dbus-1/session.conf"
$ XDG_RUNTIME_DIR=$(mktemp -dt xdg-run) dbus-launch --exit-with-x11 ls
$ find /tmp/xdg-run.*
/tmp/xdg-run.uaOGy3WV/
/tmp/xdg-run.uaOGy3WV/dbus-1
/tmp/xdg-run.uaOGy3WV/dbus-1/services
/tmp/xdg-run.uaOGy3WV/bus # see unix:runtime=yes above
documentation/content/en/books/handbook/wayland/_index.adoc
78

Looks incorrect. --exit-with-x11 may not work under Wayland because kwin_wayland (via startplasma-wayland) hasn't started yet thus Xwayland hasn't created X11 socket.

I know nothing about wayland, so you're most likely right on this.

Also, ck-launch-session creates XDG_RUNTIME_DIR that DBus may want to read service activation files from or (non-default) place its socket in.

I didn't get that part. What does this entail?

documentation/content/en/books/handbook/wayland/_index.adoc
78

It changes behavior and breaks bug 279743. ck-launch-session will clobber XDG_RUNTIME_DIR on the first session, effectively removing DBus socket there and (infrequently used) session-specific autostarted services. consolekit2 uses system bus (started by dbus_enable=YES), not session bus (started via dbus-launch or dbus-run-session).