On Wed, 18 Aug 2010 23:32:27 -0400 "Joe(theWordy)Philbrook" <[email protected]>
said:
> > There is usually a graceful way for some apps. You will have to
> > individually treat each app, check whether it is running, and if it is
> > running then use commands adapted to that particular app.
> >
> > For example all gvim instances run as servers (vim probably doesn't by
> > default) and you can send remote commands to them and make them save and
> > quit. Similarly, many apps have dbus instances and often if you browse
> > through the dbus tree, you will find that it has a quit command.
>
> Do you mean that the developers/maintainers of various desktops that do
> automatically convince most gui apps to prompt for unsaved changes during
> a standard graceful shutdown process such as e17, kde, xfce, and I think
> gnome, etc... use, actually have to research the appropriate commands
> for each and every individual app??? Or is there a cheat sheet somewhere
> that has a list of applications in one column and a list of "_clean_
> terminate session" commands in the other??? If the former then they work
> too hard.
>
> I mean armed with such a list I could probably cobble something together
> for the ones I use.
> Mostly:
> OO.o : which will at least try to save me with it's recovery process
> abiword : ???
> lyx : which periodically does an auto save to it's backup copy
>
> But as it is, I haven't a clue where to look for such commands. I sure don't
> recall finding anything about such things in any application:menu:help nor
> "man application" output. Though it could be hidden in some of the
> techno-jargon that sails over my head...
>
> But I only use abiword occasional (mostly when I want to export/import a
> document to/from MSword via RTF. {it takes less reformatting
> margins/bullets/etc than doing the same with OO.o}). Both lyx and OO.o will
> at least TRY to preserve my data via their recovery on "next start" or
> "file open".
>
> So if there isn't an available cheat sheet list, I guess I'll have to
> continue scrolling through my virtual desktops, shutting things down prior
> to calling whatever logout process I'm using.
e17 is graceful - if you use logout. e17's exit menu does exactly what it says.
e17 exits. simple as that. nothing else is done. generally speaking if e is
your x11 session holder/manager, as is normally the case, the session also
exist meaning your login ends and xserver resets disconnections apps. but this
is not what people really want. that is why a whole system menu exists with
logout, shutdown, reboot, suspend etc. - this is where e17 does the graceful
path, if it can. for shutdown, reboot and logout it first actually walks
through every open window and asks for a "nice shutdown" - the same thing as
hitting "X" on the top-right. apps may ask to be notified of this and have an
opportunity to gracefully close their own window. e will wait around for up to
a timeout (i think 20seconds) and then complain that something is not shutting
down cleanly - you can manually find it then and try again or just say "screw
it" and continue anyway with the "logout". with shutdown and reboot it first
does this logout clean graceful close of all app windows, THEN on logout just
exits e - as above. for shutdown and reboot it uses the sysactions conf to know
what sysaction to pass to enlightenment_sys which is a suid root binary e
installs. this maps the action (shutdown, reboot) to some command to run (eg
shutdown -h now, reboot etc.). the same for suspend and hibernate EXCEPt there
is no logout procedure there. just asks syactions to be run and mapping to who
is allowed, how and what it maps to.
e17 does the graceful right thing. otherwise ymmv :)
--
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler) [email protected]
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users