Commit 0b6b1162 authored by Chih-Hsuan Yen's avatar Chih-Hsuan Yen Committed by yan12125
Browse files

xdg-mime: actually handle lists in mimeapps.list correctly

The issue was raised in [1]. The earlier fix [2] makes xdg-mime always
pick the first item from a list, and that differs from the standard [3].

> If the application is no longer installed, the next application in the
> list is attempted, and so on.

A latter fix [4] implements the standard-compliant behavior, while it
does not actually work until [2] is reverted.

[2] xdg/xdg-utils@a5ec775d
[4] xdg/xdg-utils@1f8e58d5
parent 8ae02631
......@@ -375,7 +375,7 @@ check_mimeapps_list()
' "$mimeapps_list" | cut -d ';' -f 1)
' "$mimeapps_list")
if [ -n "$result" ]; then
# $result could be a ; separated list of .desktop files
# use the first on the system
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