Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bin/sugar-launch
diff options
context:
space:
mode:
Diffstat (limited to 'bin/sugar-launch')
-rw-r--r--bin/sugar-launch4
1 files changed, 4 insertions, 0 deletions
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