]> git.pld-linux.org Git - packages/google-chrome.git/blob - google-chrome.sh
- up to 93.0.4577.63
[packages/google-chrome.git] / google-chrome.sh
1 #!/bin/bash
2
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.
6
7 # Let the wrapped binary know that it has been run through the wrapper.
8 export CHROME_WRAPPER=$(readlink -f "$0")
9
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"}
13
14 # for to find xdg-settings
15 export PATH=@libdir@${PATH:+:"$PATH"}
16
17 export CHROME_VERSION_EXTRA="RPM_STATE"
18
19 # We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
20 export GNOME_DISABLE_CRASH_DIALOG=SET_BY_GOOGLE_CHROME
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 # chrome needs /dev/shm being mounted
29 m=$(awk '$2 == "/dev/shm" && $3 == "tmpfs" {print}' /proc/mounts)
30 if [ -z "$m" ]; then
31         cat >&2 <<-'EOF'
32         Chromium needs /dev/shm being mounted for Shared Memory access.
33
34         To do so, invoke (as root):
35         mount -t tmpfs -o rw,nosuid,nodev,noexec none /dev/shm
36
37         EOF
38 fi
39
40 exec -a "$0" @libdir@/chrome "$@"
This page took 0.145339 seconds and 3 git commands to generate.