:: Re: [Dng] Is it useful to create a …
Forside
Slet denne besked
Besvar denne besked
Skribent: Jaret Cantu
Dato:  
Til: Edward Bartolo, T.J. Duchene
CC: dng
Emne: Re: [Dng] Is it useful to create a .so file to replace functions imported from libsystemd & Co.?
On 05/18/2015 07:20 AM, Edward Bartolo wrote:
> xfce4-power-manager, xfce4-session, upowerd don't look like using
> libsystemd directly. I found many functions imported from udev but my
> assumption is that these are already provided by gudev although I may
> be wrong.
>
> My XFCE4 installation in Devuan cannot shutdown or restart as these
> options for some reason unknown to me are greyed out.


Hope someone finds this useful:


My XFCE desktop was able to shutdown/reboot just fine. Then, I tried
installing a systemd-free gnome3. There was some upgrading, gdm
certainly didn't work, and I had to fall back to my wdm/xfce desktop.

Turns out, next time I tried to reboot, I had the grayed-out options
like you did.


After some digging in the xfce4-session code, I suspected that I was
getting denied the right to shutdown from ConsoleKit. I was right:


dbus-send --print-reply --system --dest=org.freedesktop.ConsoleKit
/org/freedesktop/ConsoleKit/Manager
org.freedesktop.ConsoleKit.Manager.CanRestart


After more digging, what did the problem turn out to be?


.... policykit-1. Yup, during my upgrade, I snagged policykit-1 from
Devuan. It broke things.

I apt-get remove'd policykit-1, and lookit that, my Reboot/Shutdown
buttons are back. I didn't even have to restart XFCE.


~jaret