[conduit: 126/138] Teach it about standard services and how to start tomboy
- From: John Carr <johncarr src gnome org>
- To: svn-commits-list gnome org
- Subject: [conduit: 126/138] Teach it about standard services and how to start tomboy
- Date: Thu, 21 May 2009 03:37:30 -0400 (EDT)
commit b32026ae56409c78e988c084d4b392fc5d1ec997
Author: John Carr <john carr unrouted co uk>
Date: Wed May 6 14:41:47 2009 -0700
Teach it about standard services and how to start tomboy
---
test/soup/env/fake-session-bus.conf.in | 1 +
test/soup/modules/tomboy.py | 3 +++
2 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/test/soup/env/fake-session-bus.conf.in b/test/soup/env/fake-session-bus.conf.in
index 1758c52..81fb205 100644
--- a/test/soup/env/fake-session-bus.conf.in
+++ b/test/soup/env/fake-session-bus.conf.in
@@ -3,6 +3,7 @@
<busconfig>
<type>session</type>
<listen>unix:tmpdir=/tmp</listen>
+ <standard_session_servicedirs />
<servicedir>@top_builddir@/test/soup/tmp/dbus</servicedir>
<policy context="default">
<allow send_destination="*" eavesdrop="true"/>
diff --git a/test/soup/modules/tomboy.py b/test/soup/modules/tomboy.py
index e05a672..14110ab 100644
--- a/test/soup/modules/tomboy.py
+++ b/test/soup/modules/tomboy.py
@@ -5,12 +5,15 @@ from soup.data.note import NoteWrapper
import conduit.modules.TomboyModule as TomboyModule
+import dbus
+
class Tomboy(soup.modules.ModuleWrapper):
klass = TomboyModule.TomboyNoteTwoWay
dataclass = NoteWrapper
def create_dataprovider(self):
+ a, retval = dbus.SessionBus().start_service_by_name("org.gnome.Tomboy")
return self.klass()
def destroy_dataprovider(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]