Revert "Add ability to launch a bundle"

This reverts commit 8fcb0b48d3.
This commit is contained in:
Martin Abente Lahaye 2015-04-12 10:11:59 -04:00
parent 8fcb0b48d3
commit 06c3f01998

View File

@ -1159,10 +1159,3 @@ def show_object_in_journal(object_id):
obj = bus.get_object(J_DBUS_SERVICE, J_DBUS_PATH) obj = bus.get_object(J_DBUS_SERVICE, J_DBUS_PATH)
journal = dbus.Interface(obj, J_DBUS_INTERFACE) journal = dbus.Interface(obj, J_DBUS_INTERFACE)
journal.ShowObject(object_id) 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)