[Pkg-sugar-commit] [sugar-toolkit-gtk3] 04/08: Add ability to launch a bundle
Jonas Smedegaard
dr at jones.dk
Sat May 30 09:38:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
js pushed a commit to tag v0.105.0
in repository sugar-toolkit-gtk3.
commit 8fcb0b48d3d7fc1b1d95300559fae99fc08028f2
Author: Manuel Quiñones <manuel.por.aca at gmail.com>
Date: Fri Jan 31 13:50:17 2014 -0300
Add ability to launch a bundle
FIXME, to be written.
---
src/sugar3/activity/activity.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/sugar3/activity/activity.py b/src/sugar3/activity/activity.py
index d56c620..9362ac5 100644
--- a/src/sugar3/activity/activity.py
+++ b/src/sugar3/activity/activity.py
@@ -1159,3 +1159,10 @@ def show_object_in_journal(object_id):
obj = bus.get_object(J_DBUS_SERVICE, J_DBUS_PATH)
journal = dbus.Interface(obj, J_DBUS_INTERFACE)
journal.ShowObject(object_id)
+
+def launch_bundle(bundle_id="", object_id="", mime_type=""):
+ bus = dbus.SessionBus()
+ obj = bus.get_object('org.sugarlabs.BundleLauncher',
+ '/org/sugarlabs/BundleLauncher')
+ bundle_launcher = dbus.Interface(obj, 'org.sugarlabs.BundleLauncher')
+ bundle_launcher.launch(bundle_id, object_id, mime_type)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugar-toolkit-gtk3.git
More information about the pkg-sugar-commit
mailing list