3 | | With the attached patch libdbus will now accept to run setuid, have a better chance at finding the session bus socket when run through sudo if the following line is added to /etc/sudoers (using `visudo` evidently): |
4 | | |
5 | | {{{ |
6 | | Defaults env_keep += "DBUS_LAUNCHD_SESSION_BUS_SOCKET" |
7 | | }}} |
8 | | |
9 | | and privileged workers actually seem to work if the system dbus is running and one has used the following magic formula at least once in the current login session: |
10 | | |
11 | | {{{ |
12 | | sudo launchctl setenv DBUS_LAUNCHD_SESSION_BUS_SOCKET $DBUS_LAUNCHD_SESSION_BUS_SOCKET |
13 | | }}} |
| 3 | Edit: removed description of obsolete hacks. |