diff options
Diffstat (limited to 'rpms/sugar/0047-Extend-sugar-launch-with-more-options.patch')
-rw-r--r-- | rpms/sugar/0047-Extend-sugar-launch-with-more-options.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/rpms/sugar/0047-Extend-sugar-launch-with-more-options.patch b/rpms/sugar/0047-Extend-sugar-launch-with-more-options.patch new file mode 100644 index 0000000..6102e78 --- /dev/null +++ b/rpms/sugar/0047-Extend-sugar-launch-with-more-options.patch @@ -0,0 +1,45 @@ +From f17357af17f782b720b6b8c3126dfe54fd1b778f Mon Sep 17 00:00:00 2001 +From: Martin Abente <martin.abente.lahaye@gmail.com> +Date: Wed, 19 Jan 2011 20:20:35 +0000 +Subject: [PATCH sugar 47/74] Extend sugar-launch with more options + +Add activity_id, object_id and uri options. + +This patch is necessary in order to use Browse +as the default http uri handler in sugar. +Reviewed-by: Aleksey Lim <alsroot@member.fsf.org> +--- + bin/sugar-launch | 10 +++++++++- + 1 files changed, 9 insertions(+), 1 deletions(-) + +diff --git a/bin/sugar-launch b/bin/sugar-launch +index 7297a8e..18c0bb7 100644 +--- a/bin/sugar-launch ++++ b/bin/sugar-launch +@@ -28,6 +28,13 @@ usage = "usage: %prog [options] activity" + parser = OptionParser(usage) + parser.add_option("-d", "--debug", action="store_true", dest="debug", + help="launch activity inside gdb") ++parser.add_option("-a", "--activity_id", action="store", dest="activity_id", ++ help="unique id for the activity to be launched") ++parser.add_option("-o", "--object_id", action="store", dest="object_id", ++ help="identity of the journal object associated with" \ ++ " the activity") ++parser.add_option("-u", "--uri", action="store", dest="uri", ++ help="URI associated with the activity") + (options, args) = parser.parse_args() + + if len(args) == 0: +@@ -42,7 +49,8 @@ if not path: + sys.exit(1) + + activity = ActivityBundle(path) +-cmd_args = activityfactory.get_command(activity) ++cmd_args = activityfactory.get_command(activity, options.activity_id, ++ options.object_id, options.uri) + + def _which(exec_file): + if 'PATH' in os.environ: +-- +1.7.6 + |