Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/shellservice.py
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-06-29 17:05:10 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-06-29 17:05:10 (GMT)
commitd7a8c5430e1565fb7f8ebfd5c828b83eff24c0b5 (patch)
tree26ef68b79b6edcb4cb38fb26f2ed2d27170ba6a9 /shell/shellservice.py
parent64812c7d67c3f926cb7348bd8fffcf6f4d1f219f (diff)
Make notification work from outside the shell process
Diffstat (limited to 'shell/shellservice.py')
-rw-r--r--shell/shellservice.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/shell/shellservice.py b/shell/shellservice.py
index d44144c..b4c96ff 100644
--- a/shell/shellservice.py
+++ b/shell/shellservice.py
@@ -21,6 +21,7 @@ from model import bundleregistry
_DBUS_SERVICE = "org.laptop.Shell"
_DBUS_ACTIVITY_REGISTRY_IFACE = "org.laptop.Shell.ActivityRegistry"
+_DBUS_SHELL_IFACE = "org.laptop.Shell"
_DBUS_OWNER_IFACE = "org.laptop.Shell.Owner"
_DBUS_PATH = "/org/laptop/Shell"
@@ -59,6 +60,17 @@ class ShellService(dbus.service.Object):
bus_name = dbus.service.BusName(_DBUS_SERVICE, bus=bus)
dbus.service.Object.__init__(self, bus_name, _DBUS_PATH)
+
+ @dbus.service.method(_DBUS_SHELL_IFACE,
+ in_signature="ss", out_signature="")
+ def NotifyLaunch(self, bundle_id, activity_id):
+ self._shell.notify_launch(bundle_id, activity_id)
+
+ @dbus.service.method(_DBUS_SHELL_IFACE,
+ in_signature="s", out_signature="")
+ def NotifyLaunchFailure(self, activity_id):
+ self._shell.notify_launch_failure(activity_id)
+
@dbus.service.method(_DBUS_ACTIVITY_REGISTRY_IFACE,
in_signature="s", out_signature="b")
def AddBundle(self, bundle_path):