Activation

Richard Hult richard@imendio.com
Tue, 06 Jan 2004 17:10:47 +0100


tis 2004-01-06 klockan 00.30 skrev Havoc Pennington:
> On Mon, 2004-01-05 at 13:32, Richard Hult wrote:
> > > * Some hesitation about the usefulness of primary/secondary owner
> > 
> > Are there some known use cases for this? It sounds more useful to
> > actually handle this at the application level, for example with a
> > service that handles all the open windows of an app (instead of having
> > several running instances of the app), and passes around the "primary
> > owner" role as windows of the app are closed and opened.
> > 
> 
> The intended use case is: 
> 
>  - I start three gedit processes, or one gedit and one 
>    kwrite
>  - the first one claims org.freedesktop.TextEditor
>  - I close the first gedit
>  - one of the others becomes the active org.freedesktop.TextEditor
>    automatically, with no race conditions

OK. Aside from being race-less, it would also make writing clients a bit
easier since you wouldn't need to write the "herd thundering" code
everywhere, always a good thing.

/Richard

-- 
Richard Hult                    richard@imendio.com
Imendio                         http://www.imendio.com