From bf64aa5d30eb2d69bc317d364dbbe8b7be7630d7 Mon Sep 17 00:00:00 2001 From: Stephen Watson Date: Sat, 4 Mar 2006 11:51:35 +0000 Subject: [PATCH] Improve installation of MIME type handler under Zero Install (Stephen Watson) git-svn-id: https://rox.svn.sourceforge.net/svnroot/rox/trunk/ROX-Lib2@4472 66de3db3-b00d-0410-b41b-f4738ad19bea --- Help/Changes | 5 +++++ python/rox/mime_handler.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Help/Changes b/Help/Changes index 182639d..2241f98 100644 --- a/Help/Changes +++ b/Help/Changes @@ -3,6 +3,11 @@ by Thomas Leonard http://rox.sourceforge.net +04-Mar-2006 +~~~~~~~~~~~ +When installing a type handler under Zero Install, make sure to pass the +arguments to the program and run 0launch in console mode (Stephen Watson). + 25-Feb-2006 ~~~~~~~~~~~ Added mime.get_type_handler(), which uses the same algorithm as ROX-Filer to diff --git a/python/rox/mime_handler.py b/python/rox/mime_handler.py index ecbf3ca..0b5a43f 100644 --- a/python/rox/mime_handler.py +++ b/python/rox/mime_handler.py @@ -242,7 +242,7 @@ def _install_at(path, app_dir, injint): if injint and _run_by_injector(app_dir): f=file(tmp, 'w') f.write('#!/bin/sh\n') - f.write('0launch %s\n' % injint) + f.write('0launch -c "%s" "$@"\n' % injint) f.close() os.chmod(tmp, 0755) else: -- 2.11.4.GIT