On Sun, 21 Jun 2020 11:07:38 +0200 Lioh Moeller <lioh.moel...@gmx.ch> said:

> Hi all,
> 
> I am preparing a switch from ConsoleKit2 to elogind. Everything seems to
> work so far, just the Reboot/Shutdown/Suspend/Hibernate commands are all
> grayed out. I guess this has been handled through ck before. I have
> tried to add a sudo definition for sudo reboot and sudo halt without
> password but it did not change anything. I assume that loginctl would be
> used in such a case. But how can I tell e to use that commands without
> having SystemD installed?

that'd be elogind not working right I think. though not sure if elogind
supports these to begin with but the moment there is a logind dbus service is
when e then queries it for if we can shutdown/suspend etc.

Systemd certainly does support this and E auto-detects these over dbus when it
starts up and thus enables them. If not then you need
to adapt /etc/enlightenment/sysactions.conf for your system... well until 0.24
where that's no longer used for this. It's now hardcoded into
enlightenment_system where it will run some specific commands if they
exist/are found.

on a non-systemd (well logind) system e just assumes
halt/reboot/suspend/hibernate all work and now "ymmv" at runtime based on what
enlightenment_system finds in terms of binaries on the system. e_system_power.c
has the relevant code. it's a short 135 line src file so easy enough to read
and understand.

e_sys.c is where e queries logind service if you can do these system actions
and records the responds (it is assumed to be unable to do them by default
until we get a "yes you can" from logind).

you don't need sudo. enlightenment_system runs as root (it's setuid root - you
will see it lurking in the background as a root process. it's a setuid root
shim service e has for doing root specific things).

> Greetings
> 
> Lioh
> 
> 
> _______________________________________________
> enlightenment-users mailing list
> enlightenment-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-users
> 


-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
Carsten Haitzler - ras...@rasterman.com



_______________________________________________
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to