Re: [Ximian Gene-pool] Bad error handling in bonobo-generic-factory?



On Thu, 2001-10-18 at 15:39, Federico Mena Quintero wrote:
> I am using a bonobo-generic-factory for the alarm notification service. 
> To avoid having more than one daemon running, I of course do
> 
> 	factory = bonobo_generic_factory_new (MY_IID, factory_fn, NULL);
> 
> 	if (!factory)
> 		terminate();
> 
> However, this returns non-NULL even if the alarm daemon is already
> running.
> 
> It is not taking into account the other possible errors from OAF, namely
> OAF_REG_NOT_LISTED and in particular OAF_REG_ALREADY_ACTIVE.
> 
> Is this a genuine bug and in such case should we put out a new release
> and Ximian package?

funny - i am coding a PanelUniqueFactory which fixes exactly this.

i am basing it on the code in nautlius/src/nautilus-application.c (i
don't have which function handy - it is the ugly one with the activation
stuff in it).

i should have mine done tonight and it is easily ported to gnome 1.0, so
you could probably use that instead of the generic factory.

jacob
-- 



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