[Portland-bugs] [Bug 99106] New: xdg-mime defualt is inconsistent with xdg-open
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri Dec 16 11:25:49 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=99106
Bug ID: 99106
Summary: xdg-mime defualt is inconsistent with xdg-open
Product: Portland
Version: 1.1.0 rc3
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: NEW
Severity: major
Priority: medium
Component: xdg-utils
Assignee: portland-bugs at lists.freedesktop.org
Reporter: tezeb+freedesktop at outoftheblue.pl
Steps to reproduce:
1. DE set to gnome3
2. unset XDG_DATA_HOME
3. have multiple valid pdf applications installed(ie. gimp, evince)
4. assume no custom settings for handlers
5. run: xdg-mime query default application/pdf
With XDG_UTILS_DEBUG_LEVEL, it will display multiple paths being checked. It
finds gimp.desktop in /usr/share/applications/defaults.list
6. run: xdg-mime default /usr/share/applications/evince.desktop application/pdf
Again, debug shows:
Updating /home/user/.local/share/applications/mimeapps.list
7. run: xdg-mime query default application/pdf
It displays '/usr/share/applications/evince.desktop' as expected.
8. run: xdg-open xxx.pdf
It opens gimp.desktop(or whatever was the default).
The BUG:
Internally xdg-open uses gvfs-open(version 1.30.3 here), which uses ~/.config/
as default XDG_DATA_HOME when the variable is unset, but xdg-mime uses some awk
magic and completly different path.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/portland-bugs/attachments/20161216/ba2e3411/attachment.html>
More information about the Portland-bugs
mailing list