/usr/bin/sugar-install-bundle is in sugar-session 0.112-4.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/usr/bin/python
import os
import sys
from sugar3.bundle.activitybundle import ActivityBundle
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
def cmd_help():
print 'Usage: sugar-install-bundle activitybundle.xo [...] \n\n\
Install activity bundles\n'
if len(sys.argv) < 2:
cmd_help()
sys.exit(2)
for name in sys.argv[1:]:
bundle = ActivityBundle(name)
path = bundle.install()
# make sure that the BundleRegistry will add this bundle
# by triggering a GFileMonitor ATTRIBUTE_CHANGED event.
os.utime(path, None)
print "%s: '%s' installed." % (sys.argv[0], name)
|