Graceful termination again

2006-01-23 Thread Roman Belenov
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 messa

Re: Graceful termination again

2006-01-23 Thread Richard Frith-Macdonald
On 23 Jan 2006, at 08:50, Roman Belenov wrote: 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 fro

Re: Graceful termination again

2006-01-23 Thread Chris B. Vetter
On 1/23/06, Roman Belenov <[EMAIL PROTECTED]> wrote: > I hacked a bit trying to implement logoff with graceful application > termination on GNUstep and got some questions: [...] The way I see it would be sending a NSWorkspaceWillPowerOffNotification when "Logout" (or similar) is clicked to the Wor

Re: Graceful termination again

2006-01-23 Thread Fred Kiefer
Roman Belenov wrote: > > 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

Re: Graceful termination again

2006-01-23 Thread Richard Frith-Macdonald
On 23 Jan 2006, at 16:38, Fred Kiefer wrote: Roman Belenov wrote: 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 correspon

Re: Graceful termination again

2006-01-23 Thread David Ayers
Richard Frith-Macdonald schrieb: > > We could finish getting the NSWorkspace class to do what it was > originally designed to do ... provide the list of launched apps as > supplied by the workspace manager. That would be a small modification > to NSWorkspace and to GWorkspace. However, we wou

Re: Graceful termination again

2006-01-23 Thread Richard Frith-Macdonald
On 23 Jan 2006, at 21:36, David Ayers wrote: Richard Frith-Macdonald schrieb: We could finish getting the NSWorkspace class to do what it was originally designed to do ... provide the list of launched apps as supplied by the workspace manager. That would be a small modification to NSWorks

Re: Graceful termination again

2006-01-23 Thread Matt Rice
--- Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: > If we want to put the functionality into an existing > daemon, I think > gpbs would be the best option, as it is part of the > gui/back > libraries (ie related to applications) while gdnc > provides a service > for the base library.

Re: Graceful termination again

2006-01-23 Thread Sheldon Gill
Richard Frith-Macdonald wrote: On 23 Jan 2006, at 21:36, David Ayers wrote: Richard Frith-Macdonald schrieb: We could finish getting the NSWorkspace class to do what it was originally designed to do ... provide the list of launched apps as supplied by the workspace manager. That would be a sm

Re: Graceful termination again

2006-01-23 Thread Enrico Sersale
On 2006-01-23 15:05:41 +0200 Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: On 23 Jan 2006, at 08:50, Roman Belenov wrote: 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 applic

Re: Graceful termination again

2006-01-24 Thread David Ayers
Enrico Sersale schrieb: > Perhaps some of the older gnusteppers remember this: > > "The Zen of no UI > Why don't we just write a GNU-DO based WorkspaceMaster which could > perform all the necessary tasks like copying files, killing apps, > checking for removable media etc. pp. and then just use

Re: Graceful termination again

2006-01-24 Thread Chris B. Vetter
On 1/24/06, David Ayers <[EMAIL PROTECTED]> wrote: > Enrico Sersale schrieb: [...] > > In other words: I want to re-propose a "workspace" daemon that > > implements all the NSWorkspace methods that imply distributed > > information, leaving all the other things to the normal NSWorkspace > > instanc

Re: Graceful termination again

2006-01-24 Thread Enrico Sersale
On 2006-01-23 12:54:01 +0200 Chris B. Vetter <[EMAIL PROTECTED]> wrote: On 1/23/06, Roman Belenov <[EMAIL PROTECTED]> wrote: I hacked a bit trying to implement logoff with graceful application termination on GNUstep and got some questions: [...] The way I see it would be sending a NSWorkspace

Re: Graceful termination again

2006-01-26 Thread Enrico Sersale
On 2006-01-24 11:15:10 +0200 Chris B. Vetter <[EMAIL PROTECTED]> wrote: On 1/24/06, David Ayers <[EMAIL PROTECTED]> wrote: Enrico Sersale schrieb: [...] In other words: I want to re-propose a "workspace" daemon that implements all the NSWorkspace methods that imply distributed information, le

Re: Graceful termination again

2006-01-26 Thread Richard Frith-Macdonald
On 24 Jan 2006, at 09:15, Chris B. Vetter wrote: On 1/24/06, David Ayers <[EMAIL PROTECTED]> wrote: Enrico Sersale schrieb: [...] In other words: I want to re-propose a "workspace" daemon that implements all the NSWorkspace methods that imply distributed information, leaving all the other th

Re: Graceful termination again

2006-01-28 Thread Enrico Sersale
On 2006-01-27 16:24:13 +0200 Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: On 26 Jan 2006, at 16:26, Enrico Sersale wrote: On 2006-01-24 11:15:10 +0200 Chris B. Vetter <[EMAIL PROTECTED]> wrote: On 1/24/06, David Ayers <[EMAIL PROTECTED]> wrote: Enrico Sersale schrieb: [...] In ot

Re: Graceful termination again

2006-01-28 Thread Richard Frith-Macdonald
On 27 Jan 2006, at 15:47, Enrico Sersale wrote: On 2006-01-27 16:24:13 +0200 Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: On 26 Jan 2006, at 16:26, Enrico Sersale wrote: On 2006-01-24 11:15:10 +0200 Chris B. Vetter <[EMAIL PROTECTED]> wrote: On 1/24/06, David Ayers <[EMAIL PROTECT

Re: Graceful termination again

2006-01-28 Thread Richard Frith-Macdonald
On 26 Jan 2006, at 16:26, Enrico Sersale wrote: On 2006-01-24 11:15:10 +0200 Chris B. Vetter <[EMAIL PROTECTED]> wrote: On 1/24/06, David Ayers <[EMAIL PROTECTED]> wrote: Enrico Sersale schrieb: [...] In other words: I want to re-propose a "workspace" daemon that implements all the NSWor

Re: Graceful termination again

2006-01-28 Thread Enrico Sersale
On 2006-01-27 20:14:40 +0200 Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: On 27 Jan 2006, at 15:47, Enrico Sersale wrote: [snip] I still think it would be good to get round to implementing the capability of asking the workspace manager to perform operations centrally, but we need to

Re: Graceful termination again

2006-01-28 Thread Richard Frith-Macdonald
On 27 Jan 2006, at 20:10, Enrico Sersale wrote: On 2006-01-27 20:14:40 +0200 Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: On 27 Jan 2006, at 15:47, Enrico Sersale wrote: [snip] I still think it would be good to get round to implementing the capability of asking the workspace manag

Re: Graceful termination again

2006-01-28 Thread Enrico Sersale
On 2006-01-27 23:07:30 +0200 Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: On 27 Jan 2006, at 20:10, Enrico Sersale wrote: On 2006-01-27 20:14:40 +0200 Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: On 27 Jan 2006, at 15:47, Enrico Sersale wrote: [snip] I still think it would be

Re: Graceful termination again

2006-01-28 Thread Richard Frith-Macdonald
On 27 Jan 2006, at 22:40, Enrico Sersale wrote: On 2006-01-27 23:07:30 +0200 Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: On 27 Jan 2006, at 20:10, Enrico Sersale wrote: On 2006-01-27 20:14:40 +0200 Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: On 27 Jan 2006, at 15:47, Enrico

what to do now? (was: Re: Graceful termination again)

2006-02-05 Thread Enrico Sersale
GWorkspace, if used in the role of NSWorkspace "workspace application" can now return in -launchedApplications the list of all the running apps. As a side effect of this and of all the work that Richard has done in NSWorkspace, NSApplication, etc.., we have now also a working implementation of

Re: what to do now? (was: Re: Graceful termination again)

2006-02-05 Thread Richard Frith-Macdonald
On 5 Feb 2006, at 12:17, Enrico Sersale wrote: But now my problem is how to implement all the "graceful termination" stuff; I suppose that I should add a "Logout" menu and send a NSWorkspaceWillPowerOffNotification through the NSWorkspace notification center; I don't think that's necessar

Re: what to do now? (was: Re: Graceful termination again)

2006-02-08 Thread Enrico Sersale
On 2006-02-05 18:00:01 +0200 Richard Frith-Macdonald <[EMAIL PROTECTED]> wrote: On 5 Feb 2006, at 12:17, Enrico Sersale wrote: But now my problem is how to implement all the "graceful termination" stuff; I suppose that I should add a "Logout" menu and send a NSWorkspaceWillPowerOffNotificat