]> git.eshelyaron.com Git - emacs.git/commit
Add MIME apps spec utilities
authorMark Oteiza <mvoteiza@udel.edu>
Mon, 25 Sep 2017 02:28:51 +0000 (22:28 -0400)
committerMark Oteiza <mvoteiza@udel.edu>
Tue, 26 Sep 2017 21:48:00 +0000 (17:48 -0400)
commita17f30d7cdfa3983f8c97e474015777ec051de35
tree9c56ff4e146b9f1c071cb31541e00a1b3fa2e215
parent52a1da03b226b8686856259ac5d9474a8462322a
Add MIME apps spec utilities

Facilitates finding associations between MIME types and desktop files
that report an association with that type.  Combined with mailcap.el's
MIME facilities, it should be easy to use desktop files.
* lisp/xdg.el (xdg-mime-table): New variable.
(xdg-mime-apps-files, xdg-mime-collect-associations, xdg-mime-apps):
New functions.
* test/data/xdg/mimeapps.list: New file.
* test/data/xdg/mimeinfo.cache: New file.
* test/lisp/xdg-tests.el (xdg-mime-associations): New test.
lisp/xdg.el
test/data/xdg/mimeapps.list [new file with mode: 0644]
test/data/xdg/mimeinfo.cache [new file with mode: 0644]
test/lisp/xdg-tests.el