Use proper "org.laptop.Activity" interface when talking to activities
This commit is contained in:
parent
677c4bc199
commit
c89de594d3
@ -26,6 +26,7 @@ from sugar.activity import bundleregistry
|
|||||||
|
|
||||||
_SERVICE_NAME = "org.laptop.Activity"
|
_SERVICE_NAME = "org.laptop.Activity"
|
||||||
_SERVICE_PATH = "/org/laptop/Activity"
|
_SERVICE_PATH = "/org/laptop/Activity"
|
||||||
|
_SERVICE_INTERFACE = "org.laptop.Activity"
|
||||||
|
|
||||||
class HomeModel(gobject.GObject):
|
class HomeModel(gobject.GObject):
|
||||||
"""Model of the "Home" view (activity management)
|
"""Model of the "Home" view (activity management)
|
||||||
@ -196,8 +197,11 @@ class HomeModel(gobject.GObject):
|
|||||||
bus = dbus.SessionBus()
|
bus = dbus.SessionBus()
|
||||||
xid = window.get_xid()
|
xid = window.get_xid()
|
||||||
try:
|
try:
|
||||||
service = bus.get_object(_SERVICE_NAME + '%d' % xid,
|
service = dbus.Interface(
|
||||||
_SERVICE_PATH + "/%s" % xid)
|
bus.get_object(_SERVICE_NAME + '%d' % xid,
|
||||||
|
_SERVICE_PATH + "/%s" % xid),
|
||||||
|
_SERVICE_INTERFACE)
|
||||||
|
|
||||||
except dbus.DBusException:
|
except dbus.DBusException:
|
||||||
service = None
|
service = None
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user