Commit 1f8e58d5 authored by Rex Dieter's avatar Rex Dieter
Browse files

xdg-mime: fails on encountering a list for x-scheme-handler (BR44163)

parent 2b0a0ad8
......@@ -2,6 +2,7 @@
2017-02-28 Rex Dieter <rdieter@fedoraproject.org>
* xdg-open: Add "chromium" to fallback browsers (BR99366)
* xdg-mime: fails on encountering a list for x-scheme-handler (BR44163)
2016-12-12 Rex Dieter <rdieter@fedoraproject.org>
* Add gio tool support (BR99063)
......
......@@ -375,9 +375,18 @@ check_mimeapps_list()
}
' "$mimeapps_list" | cut -d ';' -f 1)
if [ -n "$result" ]; then
echo "$result"
# $result could be a ; separated list of .desktop files
# use the first on the system
IFS=\;
for app in $result; do
IFS="$oldifs"
exists=$(desktop_file_to_binary "$app")
if [ -n "$exists" ]; then
echo "$app"
exit_success
fi
done
fi
fi
done
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment