/usr/bin/sugar-install-bundle is in sugar-tools-0.86 0.86.3-16.
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 | #!/usr/bin/env python
import sys
from sugar.bundle.activitybundle import ActivityBundle
from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)
def cmd_help():
print 'Usage: sugar-install-bundle [ bundlename ] \n\n\
Install an activity bundle (.xo). \n'
if len(sys.argv) != 2:
cmd_help()
sys.exit(2)
bundle = ActivityBundle(sys.argv[1])
bundle.install()
print "%s: '%s' installed." % (sys.argv[0], sys.argv[1])
|