forked from Github/emacs
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).
This commit is contained in:
parent
ed72a8ccd5
commit
7733076638
1 changed files with 1 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue