Patch: Add support for icedove



Thanks,
Patrick

Index: conduit
===================================================================
--- conduit	(revision 1657)
+++ conduit	(working copy)
@@ -8,17 +8,28 @@
 # Run mozilla takes care of settin up the appropriate environment variables
 # to run a program using mozilla libs
 
-for d in `ls -d /usr/lib*/firefox* | sort -r`
-do
-    if [ -x $d/run-mozilla.sh ]; then
-        echo INFO: FOUND FIREFOX LIBS AT $d
-        $d/run-mozilla.sh $(dirname $0)/conduit.real $*
-        exit
-    fi
+ALL_OPTIONS=$*
+
+run_mozilla () {
+dir=$1
+if [ -x $dir/run-mozilla.sh ]; then
+    	echo INFO: FOUND FIREFOX LIBS AT $dir
+	$dir/run-mozilla.sh $(dirname $0)/conduit.real $ALL_OPTIONS
+	exit
+fi
+}
+
+# Mozilla like
+for d in `ls -d /usr/lib*/firefox* | sort -r`; do
+	run_mozilla $d
 done
 
+# Debian like
+for d in `ls -d /usr/lib*/icedove* | sort -r`; do
+	run_mozilla $d
+done
+
 echo "WARNING: COULD NOT FIND FIREFOX LIBRARIES"
 echo "WARNING: CONDUIT MAY CRASH UNEXPECTEDLY"
 echo "WARNING: PLEASE TALK TO THE PERSON WHO PACKAGED CONDUIT"
 $(dirname $0)/conduit.real $*
-


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]