It would appear that on Aug 21, Kim Woelders did say: > On Sat, 21 Aug 2010 10:36:48 +0200, Joe(theWordy)Philbrook wrote: > > > > My only concern is whether I'm likely to do any damage to a running > > window manager if I execute a poweroff command without letting them > > close down first. > > > I almost always shut down with "sudo shutdown -h 0", so e16 shouldn't > have trouble with that. Very recent configuration / snapshot changes may > be lost though.
Thanks for that little tidbit. I didn't think it should be a problem, but I feel a lot better about it now. (At least for e16, I'm still not sure about other DE/WM such as e17 xfce or kde... > I'm somewhat wondering, maybe what you want is an X session manager? e16 > will cooperate with it if it's there. I;m not real sure about "X session managers" I only googled a little bit. But I suspect it would add another layer of complexity when I'm trying to simplify things. I like using my ~/.xinitrc with startx to decide which applications to prestart. I like the way that works with both e16's, and e17's "remember" functions And learning to configure yet another control layer does not seem worth the effort. Especially when almost all the applications that I care about preserving document changes in try to offer a chance to restore any changes lost when poweroff sends all processes the term signal... (I only need to remember to open them from the same distro next time) It would appear that on Aug 21, P Purkayastha did say: > On 08/21/2010 04:36 PM, Joe(theWordy)Philbrook wrote: --<snip>-- > > and wrote a simple script that uses dialog (openSuSE 11.3 > > doesn't seem to have xdialog in the repo...) > > You may also want to look at gxmessage or xmessage for a graphical prompt. > Thanks. I'll have to checkout xmessage. Though OpenSuSE 11.3's man page only talks about using the mouse to select one of the buttons... If it turns out that I can't use the keyboard to select it, I'll stick with wrapping dialog with an xterm session. > > There's probably a better way to check if X is running than > > relying on the existence of a running instance of startx, but > > that part works for me... > > Yes, you can check for the $DISPLAY variable (if it is nonempty), or you > can check the output of the command "who", which will typically contain > the value of DISPLAY next to the username, etc. Thanks for that too. This method really is better. though actually I think I'll use both methods... Testing for an instance of startx to control the message text, And testing $DISPLAY to decide whether or not to wrap dialog in an xterm... This way if I should happen to use <ctrl>+<alt>+<F[2-6]> to log into another tty and execute diE from that, it can use the console screen for dialog. Yet still warn me that X is running... > > My only concern is whether I'm likely to do any damage to a running > > window manager if I execute a poweroff command without letting them > > close down first. > I am not sure about e16, but e17 allows you to shutdown using the > "System" option in the menu. Which user or group gets the permission to > shutdown the machine depends on how you configure > /etc/enlightenment/sysactions.conf Yes. And without my having to know that, all my previous e17, xfce, & kde installations were able to initialize a poweroff from the menu. But with the OpenSuSE 11.3 that I'm currently playing with, neither xfce nor kde succeeds. And e17 isn't in the repository yet. Hmmmnnn actually though, since I call startx from a wrapper script I call "xdo" which serves to copy the appropriate preconfigured xinitrc-${WM} file to ~/.xinitrc before it calls startx. I could put a call to diE in xdo right after the call to startx so that no matter which WM I was using, all I need to do is logout, and when the startx session terminates I'll automatically get a prompt that lets me quickly decide about poweroff. Of course I'd still have to scroll through the virtual desktops if I want to deal with any unsaved changes... But since I've set all my WM's to use the same keybinding to scroll through the desktops... I can do that even when my brain is starting to get tired... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Thank you, one and all for the kind help and advice. I learned a few things AND found a workaround for my perceived problem that suits me... -- | --- ___ | <0> <-> Joe (theWordy) Philbrook | ^ J(tWdy)P | ~\___/~ <<jtw...@ttlc.net>> ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ enlightenment-users mailing list enlightenment-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-users