Re: components connecting to session manager?

Hi Michael,

On Sun, 2003-01-12 at 13:34, Havoc Pennington wrote: 
> Hi,
> I filed about about nautilus-throbber apparently being in the session,
> but now I noticed that the notification area applet is also.
> Was bonobo-activation somehow keeping things from connecting to the
> session and no longer does that? Anyone know what's up?

	So I've finally looked at fixing this. Way to go me :/

	Attached is a simple fix ... although, I'm worried that components that
don't use libgnomeui will balk at the --sm-disable parameter ... will
they, or will they just ignore it ? I couldn't find anything to try it
out on.

	The alternative is to add GNOME_CLIENT_PARAM_SM_CONNECT, FALSE to all
gnome_program_inits for all components. No problem with doing that for
applets, but looking at libbonoboui its not as straighforward as we need
to know whether its a factory that's being initialised or whether its
just a normal application (which should be session managed).

	Thoughts ?

Good Luck,

Index: object-directory-activate.c
RCS file: /cvs/gnome/bonobo-activation/server/object-directory-activate.c,v
retrieving revision 1.28
diff -u -p -r1.28 object-directory-activate.c
--- object-directory-activate.c	17 Oct 2002 23:11:02 -0000	1.28
+++ object-directory-activate.c	14 Feb 2003 01:03:14 -0000
@@ -149,6 +149,10 @@ od_server_activate_exe (Bonobo_ServerInf
+        extra_arg = g_alloca (sizeof ("--sm-disable"));
+        args[i++] = extra_arg;
+        g_snprintf (extra_arg, sizeof ("--sm-disable"), "--sm-disable");
 	args[i] = NULL;

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