After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 151082 - bonobo-activation-server does not find new servers unless it is restarted
bonobo-activation-server does not find new servers unless it is restarted
Status: RESOLVED FIXED
Product: bonobo-activation [was: oaf]
Classification: Deprecated
Component: general
unspecified
Other FreeBSD
: Normal normal
: ---
Assigned To: Michael Meeks
bonobo qa
: 326085 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-08-26 02:09 UTC by Jean-Yves Lefort
Modified: 2006-08-12 13:39 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6



Description Jean-Yves Lefort 2004-08-26 02:09:51 UTC
When installing a new .server file, bonobo-activation-server needs to be
restarted to find it. The typical situation is that the user installs a new
program and immediately runs it: bonobo_activation_register_active_server()
fails. Annoying.

A quick look at the code makes me think that there should be an
update_registry() call in impl_Bonobo_ObjectDirectory_register_new_full().

Btw, why don't you use FAM to monitor the directories?
Comment 1 Michael Meeks 2004-08-26 09:32:30 UTC
We should be doing a stat every 5 seconds of real-use to detect new files added
to the directories; and then flushing client caches / re-loading if we detect a
change.

As you say - this has not been working for some time which sucks rocks - we
should fix it, but I havn't had a chance to look at it in a while.

The code is in activation-server/object-directory-corba.c (update_registry) &
(registry_directory_needs_update).
Comment 2 Kjartan Maraas 2006-07-01 11:56:02 UTC
Is this problem still there?
Comment 3 Michael Meeks 2006-07-03 12:11:01 UTC
no idea - it needs careful testing; I've not done that.
Comment 4 Gustavo Carneiro 2006-07-03 14:07:17 UTC
I have just tested this in GNOME 2.14 (not HEAD); it seems to work fine with activate-client -q -s "iid == 'something'"; if you drop a .server file in a bonobo server directory, b-a-s instantly sees it.  But it doesn't work for the case of a factory registering a factory, so the reporter is right.
Comment 5 Gustavo Carneiro 2006-07-06 13:51:18 UTC
Now tested in HEAD and it's definitely fixed.  Whoever did it, nice work :-)
Comment 6 Gustavo Carneiro 2006-08-12 13:39:00 UTC
*** Bug 326085 has been marked as a duplicate of this bug. ***