#! /bin/sh -e
## 03-change_default_browser.dpatch by  <formorer@debian.org>
##
## DP: Changes the lookup path of the gcfilms binary
 
[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
patch_opts="${patch_opts:--f --no-backup-if-mismatch ${2:+-d $2}}"

if [ $# -lt 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
       -patch) patch $patch_opts -p0 < $0;;
       -unpatch) patch $patch_opts -p0 -R < $0;;
        *)
                echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
                exit 1;;
esac

exit 0
@DPATCH@
--- /tmp/GCOptions.pm	2005-07-09 21:43:48.000000000 +0200
+++ lib/gcfilms/GCOptions.pm	2005-07-09 21:44:15.000000000 +0200
@@ -65,7 +65,7 @@
             open OPTIONS, ">$file" or $self->{parent}->optionsError('create');
             printf OPTIONS 'images='.$ENV{GCF_DATA_HOME}.'/images/
 autosave=1
-browser=firefox
+browser=x-www-browser
 file='.$ENV{GCF_DATA_HOME}.'/films.gcf
 order==0
 split=300
