https://bugzilla.redhat.com/show_bug.cgi?id=388451

Index: ImageMagick-6.3.5-xdg-open.patch
===================================================================
RCS file: ImageMagick-6.3.5-xdg-open.patch
diff -N ImageMagick-6.3.5-xdg-open.patch
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ ImageMagick-6.3.5-xdg-open.patch	2 Oct 2007 19:41:17 -0000
@@ -0,0 +1,48 @@
+diff -up ImageMagick-6.3.5/www/source/delegates.xml~ ImageMagick-6.3.5/www/source/delegates.xml
+--- ImageMagick-6.3.5/www/source/delegates.xml~	2007-08-26 22:06:09.000000000 +0300
++++ ImageMagick-6.3.5/www/source/delegates.xml	2007-10-02 22:38:05.000000000 +0300
+@@ -58,7 +58,7 @@
+ -->
+ <delegatemap>
+   <delegate decode="autotrace" stealth="True" command='"autotrace" -output-format svg -output-file "%o" "%i"' />
+-  <delegate decode="browse" stealth="True" spawn="True" command='"htmlview" http://www.imagemagick.org/'  />
++  <delegate decode="browse" stealth="True" spawn="True" command='"xdg-open" http://www.imagemagick.org/'  />
+   <delegate decode="cgm" thread-support="False" command='"ralcgm" -d ps -oC &lt; "%i" &gt; "%o" &gt;>/dev/null' />
+   <delegate decode="dng-decode" command='"/usr/bin/ufraw-batch" --silent --wb=camera --black-point=auto --exposure=auto --out-type=ppm16 --output="%u.pnm" "%i"' />
+   <delegate decode="edit" stealth="True" command='"xterm" -title "Edit Image Comment" -e vi "%o"' />
+diff -up ImageMagick-6.3.5/magick/delegate.c~ ImageMagick-6.3.5/magick/delegate.c
+--- ImageMagick-6.3.5/magick/delegate.c~	2007-10-02 22:34:46.000000000 +0300
++++ ImageMagick-6.3.5/magick/delegate.c	2007-10-02 22:38:13.000000000 +0300
+@@ -77,7 +77,7 @@ static const char
+     "<?xml version=\"1.0\"?>"
+     "<delegatemap>"
+     "  <delegate decode=\"autotrace\" stealth=\"True\" command='\"autotrace\" -output-format svg -output-file \"%o\" \"%i\"' />"
+-    "  <delegate decode=\"browse\" stealth=\"True\" spawn=\"True\" command='\"htmlview\" http://www.imagemagick.org/'  />"
++    "  <delegate decode=\"browse\" stealth=\"True\" spawn=\"True\" command='\"xdg-open\" http://www.imagemagick.org/'  />"
+     "  <delegate decode=\"cgm\" command='\"ralcgm\" -d ps -oC < \"%i\" > \"%o\" 2>/dev/null' />"
+     "  <delegate decode=\"crw\" thread-support=\"False\" command='\"dcraw\" -3 -w -c \"%i\" > \"%o\"' />"
+     "  <delegate decode=\"dcr\" thread-support=\"False\" command='\"dcraw\" -3 -w -c \"%i\" > \"%o\"' />"
+diff -up ImageMagick-6.3.5/configure.ac~ ImageMagick-6.3.5/configure.ac
+--- ImageMagick-6.3.5/configure.ac~	2007-09-11 21:19:52.000000000 +0300
++++ ImageMagick-6.3.5/configure.ac	2007-10-02 22:40:13.000000000 +0300
+@@ -2176,7 +2176,7 @@ AC_MSG_RESULT([Checking for ImageMagick 
+ AC_MSG_RESULT([-------------------------------------------------------------])
+ AutotraceDecodeDelegateDefault='autotrace'
+ BZIPDelegateDefault='bzip2'
+-BrowseDelegateDefault='htmlview'
++BrowseDelegateDefault='xdg-open'
+ CGMDecodeDelegateDefault='ralcgm'
+ CatDelegateDefault='cat'
+ DNGDecodeDelegateDefault='ufraw-batch'
+diff -up ImageMagick-6.3.5/configure~ ImageMagick-6.3.5/configure
+--- ImageMagick-6.3.5/configure~	2007-09-16 02:55:44.000000000 +0300
++++ ImageMagick-6.3.5/configure	2007-10-02 22:40:08.000000000 +0300
+@@ -40795,7 +40795,7 @@ echo "${ECHO_T}Checking for ImageMagick 
+ echo "${ECHO_T}-------------------------------------------------------------" >&6; }
+ AutotraceDecodeDelegateDefault='autotrace'
+ BZIPDelegateDefault='bzip2'
+-BrowseDelegateDefault='htmlview'
++BrowseDelegateDefault='xdg-open'
+ CGMDecodeDelegateDefault='ralcgm'
+ CatDelegateDefault='cat'
+ DNGDecodeDelegateDefault='ufraw-batch'
Index: ImageMagick.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ImageMagick/devel/ImageMagick.spec,v
retrieving revision 1.71
diff -u -r1.71 ImageMagick.spec
--- ImageMagick.spec	21 Sep 2007 03:12:17 -0000	1.71
+++ ImageMagick.spec	2 Oct 2007 19:41:17 -0000
@@ -20,7 +20,7 @@
 Source1: magick_small.png
 Patch1: ImageMagick-6.3.5-multilib.patch
 Patch2: ImageMagick-6.3.5-open.patch
-
+Patch3: ImageMagick-6.3.5-xdg-open.patch
 
 
 Url: http://www.imagemagick.org/
@@ -121,6 +121,7 @@
 %setup -q -n %{name}-%{VER}
 %patch1 -p1 -b .multilib
 %patch2 -p1 -b .open_args
+%patch3 -p1 -b .xdg-open
 
 %build
 %configure --enable-shared \
