]> git.pld-linux.org Git - packages/google-chrome.git/blame - google-chrome.sh
- up to 67.0.3396.87
[packages/google-chrome.git] / google-chrome.sh
CommitLineData
3594c02f 1#!/bin/bash
b678fd32
ER
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
3594c02f
AM
7# Let the wrapped binary know that it has been run through the wrapper.
8export CHROME_WRAPPER=$(readlink -f "$0")
9
b678fd32
ER
10# Always use our ffmpeg libs.
11# Also symlinks for nss/nspr libs can be found from our dir.
12export LD_LIBRARY_PATH=@libdir@${LD_LIBRARY_PATH:+:"$LD_LIBRARY_PATH"}
13
14# for to find xdg-settings
15export PATH=@libdir@${PATH:+:"$PATH"}
16
3594c02f
AM
17export CHROME_VERSION_EXTRA="RPM_STATE"
18
19# We don't want bug-buddy intercepting our crashes. http://crbug.com/24120
20export 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).
24exec < /dev/null
25exec > >(exec cat)
26exec 2> >(exec cat >&2)
27
3a14c033 28# chrome needs /dev/shm being mounted
b678fd32
ER
29m=$(awk '$2 == "/dev/shm" && $3 == "tmpfs" {print}' /proc/mounts)
30if [ -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
38fi
39
3594c02f 40exec -a "$0" @libdir@/chrome "$@"
This page took 0.03157 seconds and 4 git commands to generate.