Support unsupported dia(1) argument: --disable-crash-dialog
authorshort <>
Sun, 11 Dec 2005 07:27:18 +0000 (07:27 +0000)
committershort <>
Sun, 11 Dec 2005 07:27:18 +0000 (07:27 +0000)
dia-w.sh.in

index 899f18c..4b91976 100755 (executable)
@@ -83,11 +83,18 @@ else
        fi
 fi
 
-$PATH_DIA --disable-crash-dialog "$@";r=$?
+for opt in "--disable-crash-dialog" "";do
+       $PATH_DIA $opt "$@";r=$?
 
-if test "x$xpid" != "x"
-then
-       kill $xpid
-fi
+       if test "x$xpid" != "x"
+       then
+               kill $xpid
+       fi
+
+       if test $r = 0
+       then
+               exit $r
+       fi
+done
 
 exit $r