]> git.pld-linux.org Git - packages/chromium-browser-bin.git/blame - chromium-browser.sh
- fix NoSource-md5 lines
[packages/chromium-browser-bin.git] / chromium-browser.sh
CommitLineData
06604578
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.
cf2482b9
ER
8# Also symlinks for nss/nspr libs can be found from our dir.
9export LD_LIBRARY_PATH=@libdir@${LD_LIBRARY_PATH:+:"$LD_LIBRARY_PATH"}
06604578
ER
10
11# for to find xdg-settings
cf2482b9 12export PATH=@libdir@${PATH:+:"$PATH"}
06604578 13
cf2482b9
ER
14# chromium needs /dev/shm being mounted
15m=$(awk '$2 == "/dev/shm" && $3 == "tmpfs" {print}' /proc/mounts)
16if [ -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
24fi
25
d87e6843
ER
26# Set CHROME_VERSION_EXTRA visible in the About dialog and in about:version
27export CHROME_VERSION_EXTRA="PLD Linux"
28
95ab7813
ER
29# Allow $CHROME_DESKTOP to override the built-in value, so that development
30# versions can set themselves as the default without interfering with
31# non-official, packaged versions using the built-in value.
32# https://src.chromium.org/svn/trunk/src/chrome/browser/shell_integration_linux.cc
33export CHROME_DESKTOP="chromium-browser-bin.desktop"
34
cf2482b9 35exec @libdir@/chromium-browser "$@"
This page took 0.038753 seconds and 5 git commands to generate.