emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 7733076: Fix error in xdg-mime-apps-files when XDG_CURRENT_DESKTO


From: Lars Ingebrigtsen
Subject: master 7733076: Fix error in xdg-mime-apps-files when XDG_CURRENT_DESKTOP is defined
Date: Mon, 31 May 2021 00:36:46 -0400 (EDT)

branch: master
commit 7733076638f5cb427db3b2151ce33f309c08abc3
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Fix error in xdg-mime-apps-files when XDG_CURRENT_DESKTOP is defined
    
    * lisp/xdg.el (xdg-mime-apps-files): Don't bug out when
    XDG_CURRENT_DESKTOP is bound (bug#48748).
---
 lisp/xdg.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/xdg.el b/lisp/xdg.el
index 1103949..0bdfd11 100644
--- a/lisp/xdg.el
+++ b/lisp/xdg.el
@@ -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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]