wok rev 7766

Update xdg-open.

Add google-chrome browser support
author Liu Peng <rocky@slitaz.org>
date Wed Dec 22 23:47:20 2010 +0000 (2010-12-22)
parents 4436a860c7f6
children c11488255634
files xdg-utils/receipt xdg-utils/stuff/xdg-open-chrome.patch
line diff
     1.1 --- a/xdg-utils/receipt	Wed Dec 22 10:16:59 2010 +0000
     1.2 +++ b/xdg-utils/receipt	Wed Dec 22 23:47:20 2010 +0000
     1.3 @@ -14,6 +14,14 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 +    while read file; do
     1.8 +        [ -f done.$file ] && continue
     1.9 +        echo "Apply $file..."
    1.10 +        patch -p1 < ../stuff/$file || return 1
    1.11 +        touch done.$file
    1.12 +    done <<EOT
    1.13 +xdg-open-chrome.patch
    1.14 +EOT
    1.15  	./configure \
    1.16  		--prefix=/usr \
    1.17  		--infodir=/usr/share/info \
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/xdg-utils/stuff/xdg-open-chrome.patch	Wed Dec 22 23:47:20 2010 +0000
     2.3 @@ -0,0 +1,11 @@
     2.4 +--- xdg-utils-1.0.2/scripts/xdg-open.x
     2.5 ++++ xdg-utils-1.0.2/scripts/xdg-open
     2.6 +@@ -408,7 +408,7 @@
     2.7 + if [ x"$DE" = x"" ]; then
     2.8 +     # if BROWSER variable is not set, check some well known browsers instead
     2.9 +     if [ x"$BROWSER" = x"" ]; then
    2.10 +-        BROWSER=firefox:mozilla:netscape
    2.11 ++        BROWSER=firefox:google-chrome:mozilla:netscape
    2.12 +     fi
    2.13 +     DE=generic
    2.14 + fi