]> git.pld-linux.org Git - packages/chromium-browser.git/commitdiff
setup distro variant in CHROME_VERSION_EXTRA
authorElan Ruusamäe <glen@delfi.ee>
Sat, 9 Feb 2013 23:19:40 +0000 (01:19 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 9 Feb 2013 23:19:40 +0000 (01:19 +0200)
chromium-browser.sh

index a6b5d5de4da011304e538717e78834c62d974e70..e05708dc084da2c31ff66bbe6fa8ad01ce0f3595 100755 (executable)
@@ -26,8 +26,16 @@ if [ -z "$m" ]; then
        EOF
 fi
 
+# lsb_release is slow so try to source the static file /etc/lsb-release
+# instead, and fallback to lsb_release if we didn't get the information we need
+if [ -e /etc/lsb-release ] ; then
+       . /etc/lsb-release
+fi
+DIST=${DISTRIB_ID:-$(lsb_release -si)}
+RELEASE=${DISTRIB_CODENAME:-$(lsb_release -sc)}
+
 # Set CHROME_VERSION_EXTRA visible in the About dialog and in about:version
-export CHROME_VERSION_EXTRA="PLD Linux"
+export CHROME_VERSION_EXTRA="$DIST Linux $RELEASE"
 
 # Let the wrapped binary know that it has been run through the wrapper
 export CHROME_WRAPPER="$(readlink -f "$0")"
This page took 0.038807 seconds and 4 git commands to generate.