From 6bba46effa13549988031d58ea8c4c60a97cfe3b Mon Sep 17 00:00:00 2001 From: Nat Goodspeed Date: Wed, 6 Dec 2017 05:17:14 -0500 Subject: MAINT-7751: Add shbang line to macOS trampoline script. This evidently makes all the difference as to whether the app is considered launchable. --- indra/newview/viewer_manifest.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'indra/newview/viewer_manifest.py') diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py index cb5503eee0..5456c264d3 100755 --- a/indra/newview/viewer_manifest.py +++ b/indra/newview/viewer_manifest.py @@ -906,8 +906,10 @@ class DarwinManifest(ViewerManifest): # our nested launcher_app with self.prefix(dst="MacOS"): toplevel_MacOS = self.get_dst_prefix() - trampoline = self.put_in_file( - 'open "%s"\n' % + trampoline = self.put_in_file("""\ +#!/bin/bash +open "%s" +""" % # up one directory from MacOS to its sibling Resources directory os.path.join('$(dirname "$0")', os.pardir, 'Resources', launcher_app), "SL_Launcher", # write this file -- cgit v1.2.3