gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Graceful termination again


From: Roman Belenov
Subject: Graceful termination again
Date: Mon, 23 Jan 2006 11:50:05 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (windows-nt)

I hacked a bit trying to implement logoff with graceful application
termination on GNUstep and got some questions:

1) How to get a list of all running GNUstep applications ?
launchedApplications seems to return only the list of apps launched from the
current one. For now I just use a list of message ports obtained by examining
corresponding subdirectory and treat everythying as a proxy for application.

2) What is the correct way to check the result of sending terminate to
application (from another one) ? Experiments show that if application actually
terminates, I get an exception caused by connection timeout.

So, currently I have a StepTalk script that works on my system (basically, it
iterates through message ports, sends terminate to everyone, treats return
without exception as a request to cancel session termination). I can post it
here, if anyone is interested, though integrating this functionality (after
correcting the workarounds) to Login.app seems to be the right way (it can
provide a service to make logoff/poweroff/etc. accesible from application
menu).

PS Also, it would be nice to get the return value of the top-level StepTalk
function from stexec (makes sence if it is boolean or integer), that would
make its usage from shell scripts easier.

-- 
                                                        With regards, Roman.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]