mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-16 09:50:25 +00:00
a17f30d7cd
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.
10 lines
163 B
Plaintext
10 lines
163 B
Plaintext
[Default Applications]
|
|
x-test/foo=a.desktop
|
|
|
|
[Added Associations]
|
|
x-test/foo=b.desktop
|
|
x-test/baz=a.desktop
|
|
|
|
[Removed Associations]
|
|
x-test/foo=c.desktop;d.desktop
|