]> git.eshelyaron.com Git - emacs.git/commit
Add XDG desktop file parsing and tests
authorMark Oteiza <mvoteiza@udel.edu>
Wed, 6 Sep 2017 17:17:05 +0000 (13:17 -0400)
committerMark Oteiza <mvoteiza@udel.edu>
Wed, 6 Sep 2017 17:17:05 +0000 (13:17 -0400)
commit9604f9cd33bcbc921fd18e894fdd8a98012fd09d
treee8c152189ae6f439fa57496dfc76596418543e08
parentda3e1016349b2f552f149ccf577b60e377c3095a
Add XDG desktop file parsing and tests

* lisp/xdg.el: Add support for Desktop Entry Specification.
(xdg--user-dirs-parse-line): Check if file is readable.
(xdg-desktop-group-regexp, xdg-desktop-entry-regexp): New variables.
(xdg--desktop-parse-line, xdg-desktop-read-file, xdg-desktop-strings):
New functions.
* test/lisp/xdg-tests.el:
* test/data/xdg/test.desktop:
* test/data/xdg/wrong.desktop: New files.
lisp/xdg.el
test/data/xdg/test.desktop [new file with mode: 0644]
test/data/xdg/wrong.desktop [new file with mode: 0644]
test/lisp/xdg-tests.el [new file with mode: 0644]