discuss-gnustep
[Top][All Lists]
Advanced

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

Re: GNUstep and session management


From: Fred Kiefer
Subject: Re: GNUstep and session management
Date: Mon, 03 Oct 2005 22:37:41 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921

Richard Frith-Macdonald wrote:
> On 2005-09-30 07:41:52 +0000 Roman Belenov <rbelenov@yandex.ru> wrote:
> 
>> Does GNUstep framework give some session-awareness to the apps that
>> use it ?
>> Is it possible to use xsm or something like that to at least close the
>> session
>> cleanly (that is, give apps with unsaved documents a chance to save
>> them) ?
> 
> In theory, yes ... the gui library has the NSWorkspace class ... which
> is essentially the session management facility.
> When the session manage wishes to shut down (either for a logout or for
> the machine shutting down), it should post an
> NSWorkspaceWillPowerOffNotification to the workspace
> notificationCenter.  The workspace notification center sends that
> notification to all the applications in the session, and they can
> respond by closing down cleanly.
> 
> In practice, I think most applications probably ignore the notification
> (since we don't actually have a standard session manager to send the
> notification ... except perhaps GSWorkspace.app, which might send an
> NSWorkspaceWillPowerOffNotification when it is shut down).
> 

In addition to what Richard wrote I have to admit that I did plan to
provide interaction with X session managers for the x11 backend of
GNUstep for years. It doesn't look to hard to do, but is rather boring
and actualy nobody has ever asked for it in all these years.
Perhaps you are interested to implement thsi yourself for GNUstep. If
not, you could try to lobby me into doing it.

Fred




reply via email to

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