3 # Copyright (c) 2006-2009 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.
7 # Let the wrapped binary know that it has been run through the wrapper.
8 export CHROME_WRAPPER=$(readlink -f "$0")
10 # Always use our ffmpeg libs.
11 # Also symlinks for nss/nspr libs can be found from our dir.
12 export LD_LIBRARY_PATH=@libdir@${LD_LIBRARY_PATH:+:"$LD_LIBRARY_PATH"}
14 # for to find xdg-settings
15 export PATH=@libdir@${PATH:+:"$PATH"}
17 export CHROME_VERSION_EXTRA="RPM_STATE"
19 # We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
20 export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME
22 # Sanitize std{in,out,err} because they'll be shared with untrusted child
23 # processes (http://crbug.com/376567).
26 exec 2> >(exec cat >&2)
28 # chrome needs /dev/shm being mounted
29 m=$(awk '$2 == "/dev/shm" && $3 == "tmpfs" {print}' /proc/mounts)
32 Chromium needs /dev/shm being mounted for Shared Memory access.
34 To do so, invoke (as root):
35 mount -t tmpfs -o rw,nosuid,nodev,noexec none /dev/shm
40 exec -a "$0" @libdir@/chrome "$@"