See systemd/systemd@3b92c086a8d5. Allows consumers (e.g., hypridle) to use GetSession "as is" instead of patching to GetSessionByPID (aka GetSessionForUnixProcess) or GetSessionForCookie.
$ basuctl --system call org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager GetSession s auto
<27>(../src/busctl/busctl.c:1920) Access denied
$ basuctl --system introspect org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager | (read h; echo "$h"; fgrep GetSession)
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
.GetSessionByPID method u o -
.GetSessionForCookie method s o -
.GetSessionForUnixProcess method u o -
.GetSessions method - ao -
.GetSessionsForUnixUser method u ao -
.GetSessionsForUser method u ao -
$ basuctl --system call org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager GetSessionForCookie s $XDG_SESSION_COOKIE
o "/org/freedesktop/ConsoleKit/Session2"
$ basuctl --system call org.freedesktop.ConsoleKit /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager GetSessionByPID u $$
o "/org/freedesktop/ConsoleKit/Session2"
See systemd/systemd@3b92c086a8d5. Allows consumers (e.g., hypridle) to use
GetSession"as is" instead of patching toGetSessionByPID(akaGetSessionForUnixProcess) orGetSessionForCookie.