From 0aa31147dbd744e41a165b4cb45283340a069f90 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Tue, 13 Nov 2007 13:19:07 +0000 Subject: Strip out /usr/bin/env from the interpreter cmd, it's apparently confusing gdb. --- (limited to 'bin/sugar-launch') diff --git a/bin/sugar-launch b/bin/sugar-launch index 501b289..e47cb1e 100644 --- a/bin/sugar-launch +++ b/bin/sugar-launch @@ -55,6 +55,10 @@ def _get_interpreter(exec_file): if line.startswith('#!'): cmds = line[2:].strip().split(' ') cmds.append(abs_path) + + if '/usr/bin/env' in cmds: + cmds.remove('/usr/bin/env') + return cmds return exec_file -- cgit v0.9.1