]> git.pld-linux.org Git - packages/chromium-browser-bin.git/commitdiff
- /dev/shm check (can we do better?)
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 24 Sep 2009 15:34:19 +0000 (15:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    chromium-browser.sh -> 1.2

chromium-browser.sh

index 9775730bc0db46b09eb80fb0426960ce947fb748..e34adcd08ab56bd8d51af817293f8b1e3a8abf6c 100644 (file)
@@ -5,10 +5,22 @@
 # 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
+
+exec @libdir@/chromium-browser "$@"
This page took 0.034694 seconds and 4 git commands to generate.