summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-client/chromium/files/chromium-launcher.sh')
-rw-r--r--www-client/chromium/files/chromium-launcher.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/www-client/chromium/files/chromium-launcher.sh b/www-client/chromium/files/chromium-launcher.sh
new file mode 100644
index 000000000000..6db715a1feb4
--- /dev/null
+++ b/www-client/chromium/files/chromium-launcher.sh
@@ -0,0 +1,25 @@
+#!/bin/sh
+#
+# Copyright (c) 2009 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Let the wrapped binary know that it has been run through the wrapper
+export CHROME_WRAPPER="`readlink -f "$0"`"
+
+PROGDIR="`dirname "$CHROME_WRAPPER"`"
+
+case ":$PATH:" in
+ *:$PROGDIR:*)
+ # $PATH already contains $PROGDIR
+ ;;
+ *)
+ # Append $PROGDIR to $PATH
+ export PATH="$PATH:$PROGDIR"
+ ;;
+esac
+
+# Always use our versions of ffmpeg libs.
+export LD_LIBRARY_PATH="$PROGDIR/lib:$LD_LIBRARY_PATH"
+
+exec "$PROGDIR/chrome" "$@"