From 6bba46effa13549988031d58ea8c4c60a97cfe3b Mon Sep 17 00:00:00 2001
From: Nat Goodspeed <nat@lindenlab.com>
Date: Wed, 6 Dec 2017 05:17:14 -0500
Subject: [PATCH] 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(-)

diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index cb5503eee09..5456c264d3c 100755
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -906,8 +906,10 @@ def construct(self):
             # 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
-- 
GitLab