Just another data point. I logged in as non-root, opened a terminal window, went to the /usr/lib/i386-linux-gnu/enlightenment/utils and executed
./enlightenment_sys halt and it worked. (./enlightenment_sys reboot worked also). So again, it appears that when I try to shutdown or reboot as non-root (when using entrance as the DM instead of lightdm), I don't get to the invocation of enlightenment_sys. In glancing at the code, I see there is a check for immortal windows. I don't really know if there is any possibility of immortal windows. Of course I would think I would hit the problem as root and/or when using lightdm as DM. Since the window gets blanked when I hit the shutdown or reboot button (either via the menu or the button on the widget), I have no way of knowing whether there is an immortal window or some other dialog showing up. Anyone have an idea if there could be something waiting to close, and if so, any way to know that? Or something else that would cause it to not complete? I can switch to a VT. Is there anything I could query? Thanks. -------- Original Message -------- Subject: Re: [E-devel] logout, reboot as non-root using entrance DM Date: Sat, 15 Mar 2014 11:43:00 -0400 From: Chris Seekamp <cseek...@acm.org> Reply-To: cseek...@acm.org To: Carsten Haitzler (The Rasterman) <ras...@rasterman.com>, Enlightenment developer list <enlightenment-devel@lists.sourceforge.net> So, interestingly, the enlightenment_sys did not have setuid set. I set it, but still saw the same behavior. When I try shutdown or reboot, this is what I see when I use ps and search for enlightenment: bodhi32 1226 1 0 09:30 ? 00:00:00 /bin/bash --login -c /usr/bin/enlightenment_start > /home/bodhi32/.entrance_session.log 2>&1 bodhi32 1231 1226 0 09:30 ? 00:00:00 /usr/bin/enlightenment_start bodhi32 1234 1 0 09:30 ? 00:00:00 dbus-launch --exit-with-session /usr/bin/enlightenment_start bodhi32 1236 1231 2 09:30 ? 00:00:01 /usr/bin/enlightenment bodhi32 1282 1236 0 09:30 ? 00:00:00 /usr/lib/i386-linux-gnu/enlightenment/utils/enlightenment_fm When I try logout, I see the following at the bottom of the enlightenment_start log: E19: Begin Shutdown Procedure! PKGKIT: dbus_shutdown() E - PID=1436, valgrind=0 But when I try shutdown or reboot I do not. Like I said, I see a black screen with a cursor, but enlightenment and X are still running. Just for grins, I tried adding a entry in sysactions.conf to allow the bodhi32 to do halt reboot suspend hibernate but it made no difference. I suspect it isn't getting as far as the enlightenment_sys call. BTW, when I used lightdm, I do see one additional reference to enlightenment when I use the ps command: /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /usr/bin/enlightenment_start I don't know if that is significant or not. I believe this comes from /etc/X11/Xsession.options (the "use-ssh-agent" line). I don't know why lightdm has ssh-agent running but entrance doesn't. Also, the with lightdm I do not see: /bin/bash --login -c /usr/bin/enlightenment_start So perhaps the issue is how entrance launches X? On 03/14/2014 10:43 PM, Carsten Haitzler (The Rasterman) wrote: > On Fri, 14 Mar 2014 15:22:10 -0400 Chris Seekamp <cseek...@acm.org> said: > >> I am working with the entrance display manager on bodhi 3.0 alpha (e19). >> When I use entrance to start enlightenment, when I try the shutdown or >> reboot operation from the system menu, it hangs as a regular user. That >> is, I get a black screen with cursor. If I use ctrl-alt-f1 I can see >> enlightenment is still running. If I login as root I can reboot/shutdown >> fine. However, logout works for both. So does anyone know what is being >> executed in enlightenment with shutdown/reboot versus logout? It appears >> (to me) we aren't getting as far as running the shutdown command. >> >> Strangely, I don't have the issue using lightdm instead of entrance. >> >> Thanks. > odd that logout works and shutdown doesn't. thge difference basically is that > logout runs around deleting all app windows e knows about (the nice way as if > you pressed the X button) allowing apps to exit cleanly on their own. if app > windows are still up after N seconds (20 i think), then e complains. it could > be complaining while screen is black - i fixed that a short while back (a few > months ago - or i think i did). > > the only thing i can imagine is that there is some regular app window that > entrance has up that e has found and that entrance is not closing when > requested... ? > > btw - after closing all the windows e uses the e_sys shutdown call - this > either runs the enlightenment_sys setuid root binary that is told to shut down > (this in turn runs whatever the shutdown action is in sysactions.conf), OR if > you have systemd, it sends a systemd dbus message asking systemd to shut down. > >> -- >> Chris Seekamp >> cseek...@acm.org >> (sent using Thunderbird on my Lenovo Chromebook running Bodhi Linux) >> >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/13534_NeoTech >> _______________________________________________ >> enlightenment-devel mailing list >> enlightenment-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel >> > -- Chris Seekamp cseek...@acm.org (sent using Thunderbird on my Lenovo Chromebook running Bodhi Linux) ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel