On Sun, 21 Jun 2020 14:08:04 +0200 Lioh Moeller <lioh.moel...@gmx.ch> said:
efl or e? for e - the systemd support is always compiled into e - no choice. its all runtime. for efl you need to have systemd support on for git efl even with elogind. it enables support for both. it'll runtime try find systemd, if it can't then it'll try find logind, and if that doesn't work- give up. for efl 1.24 the support is compile time so you have to choose system or logind support at compile time. i dont know anything about loginctl. logind exposes dbus api's to do this. that's the point. if elogind wants to be a drop in replacement for systemd's logind, it needs to provide these. if its not a drop-in replacement then ... well hooray for making things a pain in the behind for us developers (also for users as they now still have different distros/systems work differently and have to learn each one separately and know which they are on... goodbye attempts at consistency :( ) all my systems are systemd... so i don't know. i choose the path of easier development and maintenance :) > Dear Raster. > > My first question is if the systemd compile flag needs to be set in order > to use logind. The next one is: if loginctl reboot works e.g. from a > terminal, should the e menu entries then work as well? > > Greetings > > Lioh > > Am 21. Juni 2020 13:58:26 schrieb Carsten Haitzler (The Rasterman) > <ras...@rasterman.com>: > > > 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 > -- ------------- 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