Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Silbe <sascha-pgp@silbe.org>2011-05-15 18:59:25 (GMT)
committer Sascha Silbe <sascha-pgp@silbe.org>2011-05-15 20:16:22 (GMT)
commit8701947aadc07bafccb3d13e17b21317e003bf2a (patch)
treeec3966c6fce8da2de92de9c8e63654e0ce1219ec
parentb42b8482b191f4f509d5418242e7a8c00e3418f9 (diff)
Make sure we're the primary owner of the Sugar data store D-Bus service name
Having several different data store processes running, potentially serving disjunct API versions (either because of race conditions or because several different implementations are installed) would be a major source of confusion and a recipe for disaster. Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org>
-rw-r--r--gdatastore/datastore.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdatastore/datastore.py b/gdatastore/datastore.py
index 1cb8555..6f1e86c 100644
--- a/gdatastore/datastore.py
+++ b/gdatastore/datastore.py
@@ -72,7 +72,8 @@ class DBusApiSugarV2(dbus.service.Object):
bus_name = dbus.service.BusName(DBUS_SERVICE_SUGAR_V2,
bus=dbus.SessionBus(),
replace_existing=False,
- allow_replacement=False)
+ allow_replacement=False,
+ do_not_queue=True)
dbus.service.Object.__init__(self, bus_name, DBUS_PATH_SUGAR_V2)
@dbus.service.method(DBUS_INTERFACE_SUGAR_V2,