File chrome-wrapper of Package chromium-ffmpeg-extra (Revision 21)
Currently displaying revision 21 , Show latest
30
1
#!/bin/bash
2
#
3
# Copyright (c) 2011 The Chromium Authors. All rights reserved.
4
# Use of this source code is governed by a BSD-style license that can be
5
# found in the LICENSE file.
6
7
# Let the wrapped binary know that it has been run through the wrapper.
8
export CHROME_WRAPPER="`readlink -f "$0"`"
9
10
HERE="`dirname "$CHROME_WRAPPER"`"
11
12
export CHROME_VERSION_EXTRA="@@CHANNEL@@"
13
14
# We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
15
export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME
16
17
# This provides a much better experience on Wayland.
18
#if [ "$XDG_SESSION_TYPE" == "wayland" ]; then
19
# ARGS="--ozone-platform=wayland"
20
#fi
21
22
# Sanitize std{in,out,err} because they'll be shared with untrusted child
23
# processes (http://crbug.com/376567).
24
exec < /dev/null
25
exec > >(exec cat)
26
exec 2> >(exec cat >&2)
27
28
# Note: exec -a below is a bashism.
29
exec -a "$0" "$HERE/@@PROGNAME@@" "$ARGS" "$@"
30