--- ori/xdg-open 2011-03-11 07:46:26.736084304 +0800
+++ changed/xdg-open 2011-03-11 07:46:17.742062663 +0800
@@ -424,6 +424,14 @@
fi
check_input_file "$file"
+ # mimeo can handle files
+ if mimeo -h 2>/dev/null 1>&2; then
+ mimeo "$1"
+ if [ $? -eq 0 ]; then
+ exit_success
+ fi
+ fi
+
open_generic_xdg_mime "$file"
if [ -f /etc/debian_version ] &&
@@ -442,6 +450,14 @@
fi
fi
+ # mimeo can handle other links as well
+ if mimeo -h 2>/dev/null 1>&2; then
+ mimeo "$1"
+ if [ $? -eq 0 ]; then
+ exit_success
+ fi
+ fi
+
IFS=":"
for browser in $BROWSER; do
if [ x"$browser" != x"" ]; then