]>
Commit | Line | Data |
---|---|---|
b678fd32 ER |
1 | #!/bin/sh |
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 | # Always use our ffmpeg libs. | |
8 | # Also symlinks for nss/nspr libs can be found from our dir. | |
9 | export LD_LIBRARY_PATH=@libdir@${LD_LIBRARY_PATH:+:"$LD_LIBRARY_PATH"} | |
10 | ||
11 | # for to find xdg-settings | |
12 | export PATH=@libdir@${PATH:+:"$PATH"} | |
13 | ||
3a14c033 | 14 | # chrome needs /dev/shm being mounted |
b678fd32 ER |
15 | m=$(awk '$2 == "/dev/shm" && $3 == "tmpfs" {print}' /proc/mounts) |
16 | if [ -z "$m" ]; then | |
17 | cat >&2 <<-'EOF' | |
18 | Chromium needs /dev/shm being mounted for Shared Memory access. | |
19 | ||
20 | To do so, invoke (as root): | |
21 | mount -t tmpfs -o rw,nosuid,nodev,noexec none /dev/shm | |
22 | ||
23 | EOF | |
24 | fi | |
25 | ||
26 | exec @libdir@/chrome "$@" |