J. Fahrner wrote on 12.02.2018 15:41: > Hi, > I have a small python gui script rebooting,shutdown,suspend. This sends > dbus messages to consolekit and is no longer working since a recent > update. > > Rebooting is done as: > > $ dbus-send --system --print-reply --dest='org.freedesktop.ConsoleKit' > /org/freedesktop/ConsoleKit/Manager > org.freedesktop.ConsoleKit.Manager.Restart > Error org.freedesktop.ConsoleKit.Manager.NotPrivileged: Not Authorized > > Any ideas what change recently caused this non-functioning? And how make > it work again?
Assuming you are on an ASCII system: I strongly suspect this is linked to the recent addition of elogind to the repositories and the consequential changes to policykit. In order to regain "classic" consolekit operation you may try the following recipe: 1. Make sure the following packages are installed in their respective most recent versions: consolekit policykit-1 libpolkit-backend-1-0-consolekit 2. Run pam-auth-update in a root console and make sure that elogind is disabled and consolekit is enabled, leaving all other options as they are. 3. Reboot, or at least cycle through runlevel 1 and back to 2. To switch back to elogind, if you so desire, you basically revert steps 1. and 2.: Install libpolkit-backend-1-0-elogind and enable it with pam-.auth-update, disabling consolekit at the same time. BTW, if you only used your script to fix a previous loss of GUI functionality WRT to shutdown, you may find that with elogind most (if not all) desktop environments should now have (re-)gained that capability. Of course, this obviously only applies if you're using any prepackaged DE at all. HTH Best regards Urban -- Sapere aude! _______________________________________________ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng