[Portland-bugs] [Bug 102063] New: xdg-open ignores mimeapps.list

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Aug 7 04:29:26 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=102063

            Bug ID: 102063
           Summary: xdg-open ignores mimeapps.list
           Product: Portland
           Version: 1.1.0 rc3
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: xdg-utils
          Assignee: portland-bugs at lists.freedesktop.org
          Reporter: nazar at mokrynskyi.com

nazar-pc at nazar-pc ~> cat ~/.local/share/applications/mimeapps.list 
[Default Applications]
inode/directory=nemo.desktop
application/x-gnome-saved-search=nemo.desktop
text/xml=org.gnome.gedit.desktop
video/x-matroska=smplayer.desktop
nazar-pc at nazar-pc ~> xdg-mime query default video/x-matroska
smplayer.desktop

The above is enough to open *.mkv files in Nemo file manager with SMPlayer, but
when using xdg-open it still always uses MPV.

Also, `xdg-mime query filetype '/path/to/file.mkv'` doesn't output anything for
the files I'm having issues with. So looks like it struggles to determine its
mime type, but somehow still manages to select wrong application by guessing.

-- 
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/20170807/4c6cc78b/attachment.html>


More information about the Portland-bugs mailing list