]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/dired-aux.el (shell-command-guess-xdg): Check nil xdg-mime (bug#71270).
authorJuri Linkov <juri@linkov.net>
Thu, 30 May 2024 06:44:03 +0000 (09:44 +0300)
committerEshel Yaron <me@eshelyaron.com>
Thu, 30 May 2024 14:29:02 +0000 (16:29 +0200)
(cherry picked from commit 9ca7632c5c0c8a8d4c1eb39a82d6c59bea848898)

lisp/dired-aux.el

index b6f77992c76d1790628aee5b57fec0252c588c64..66763d41593cdec49e6ff797ba3d67dd941144b2 100644 (file)
@@ -1402,7 +1402,8 @@ This excludes `dired-guess-shell-alist-user' and
                       (shell-command-to-string
                        (concat "xdg-mime query filetype "
                                (shell-quote-argument (car files)))))))
-         (xdg-mime-apps (unless (string-empty-p xdg-mime)
+         (xdg-mime-apps (unless (or (null xdg-mime)
+                                    (string-empty-p xdg-mime))
                           (xdg-mime-apps xdg-mime)))
          (xdg-commands
           (mapcar (lambda (desktop)