summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRex Dieter <rdieter@math.unl.edu>2016-05-20 12:24:11 -0500
committerRex Dieter <rdieter@math.unl.edu>2016-05-20 12:24:11 -0500
commita5ec775d7631bf32760acc1c1b54a4905cfdec89 (patch)
tree6ffe1ff0b7b258839e6fd52fc4710b174193180a
parent9dac27a442b0e44b3f235798b77715e26169500f (diff)
xdg-mime: ensure check_mimeapps_list returns only primary item (BR44163)
-rw-r--r--ChangeLog3
-rw-r--r--scripts/xdg-mime.in2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 141f1f9..aca24ed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
=== xdg-utils 1.1.2 (unreleased) ===
+2016-05-20 Rex Dieter <rdieter@fedoraproject.org>
+ * xdg-mime: ensure check_mimeapps_list returns only primary item (BR44163)
+
2016-05-05 Rex Dieter <rdieter@fedoraproject.org>
* xdg-mime: xdg-mime does not write the file it reads in a query (BR95051)
diff --git a/scripts/xdg-mime.in b/scripts/xdg-mime.in
index 61b12f1..e85fd62 100644
--- a/scripts/xdg-mime.in
+++ b/scripts/xdg-mime.in
@@ -370,7 +370,7 @@ check_mimeapps_list()
found=1
}
}
-' "$mimeapps_list")
+' "$mimeapps_list" | cut -d ';' -f 1)
if [ -n "$result" ]; then
echo "$result"
exit_success