]> git.pld-linux.org Git - packages/chromium-browser-bin.git/blobdiff - chromium-browser.sh
- Up to 8.0.553.0 r62376
[packages/chromium-browser-bin.git] / chromium-browser.sh
index 9775730bc0db46b09eb80fb0426960ce947fb748..645a1f50c635fec1e910e89f6cccb3038787d944 100644 (file)
@@ -5,10 +5,25 @@
 # found in the LICENSE file.
 
 # Always use our ffmpeg libs.
-# Also symlinkes for nss/nspr libs can be found from our dir.
-export LD_LIBRARY_PATH=/usr/lib64/chromium-browser-bin${LD_LIBRARY_PATH:+:"$LD_LIBRARY_PATH"}
+# Also symlinks for nss/nspr libs can be found from our dir.
+export LD_LIBRARY_PATH=@libdir@${LD_LIBRARY_PATH:+:"$LD_LIBRARY_PATH"}
 
 # for to find xdg-settings
-export PATH=/usr/lib64/chromium-browser-bin${PATH:+:"$PATH"}
+export PATH=@libdir@${PATH:+:"$PATH"}
 
-exec /usr/lib64/chromium-browser-bin/chromium-browser "$@"
+# chromium needs /dev/shm being mounted
+m=$(awk '$2 == "/dev/shm" && $3 == "tmpfs" {print}' /proc/mounts)
+if [ -z "$m" ]; then
+       cat >&2 <<-'EOF'
+       Chromium needs /dev/shm being mounted for Shared Memory access.
+
+       To do so, invoke (as root):
+       mount -t tmpfs -o rw,nosuid,nodev,noexec none /dev/shm
+
+       EOF
+fi
+
+# Set CHROME_VERSION_EXTRA visible in the About dialog and in about:version
+export CHROME_VERSION_EXTRA="PLD Linux"
+
+exec @libdir@/chromium-browser "$@"
This page took 0.049569 seconds and 4 git commands to generate.