]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix error in xdg-mime-apps-files when XDG_CURRENT_DESKTOP is defined
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 31 May 2021 04:36:23 +0000 (06:36 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 31 May 2021 04:36:23 +0000 (06:36 +0200)
* lisp/xdg.el (xdg-mime-apps-files): Don't bug out when
XDG_CURRENT_DESKTOP is bound (bug#48748).

lisp/xdg.el

index 11039499ea924d41e3b5b023f1a9b78cc7facc19..0bdfd114c48f459e180265c7afa6dc58b5fdd79f 100644 (file)
@@ -231,7 +231,7 @@ admin config, and finally system cached associations."
         (desktop (getenv "XDG_CURRENT_DESKTOP"))
         res)
     (when desktop
-      (setq desktop (format "%s-mimeapps.list" desktop)))
+      (setq desktop (list (format "%s-mimeapps.list" desktop))))
     (dolist (name (cons "mimeapps.list" desktop))
       (push (expand-file-name name (xdg-config-home)) res)
       (push (expand-file-name (format "applications/%s" name) (xdg-data-home))