From a4f2428e4952620c41685bdd1e4c7dab7c413e32 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Fri, 10 Jan 2020 18:16:03 +0100 Subject: [PATCH] Don' use `dired-open' when on windows The reason is that `dired-open--start-process' uses POSIX tools (sh, nohup) that are not generally available on Windows. --- init.el | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/init.el b/init.el index 05991ad..06e2cf3 100644 --- a/init.el +++ b/init.el @@ -1846,14 +1846,13 @@ in the main agenda view." (add-to-list 'font-lock-maximum-decoration '(wdired-mode . 1)) (add-to-list 'font-lock-maximum-decoration '(dired-mode . 1))) - (with-demoted-errors "Non-Fatal Errors (dired-open): %s" - (when (and (eq system-type 'windows-nt) - (not (package-installed-p 'w32-browser))) - (warn "`w32-browser’ not installed, dired will have reduced functionality.")) + (when (and (eq system-type 'windows-nt) + (not (package-installed-p 'w32-browser))) + (warn "`w32-browser’ not installed, dired will have reduced functionality.")) - (require 'dired-open) - - (when (eq system-type 'gnu/linux) + (unless (eq system-type 'windows-nt) + (with-demoted-errors "Non-Fatal Errors (dired-open): %s" + (require 'dired-open) (bind-key "M-RET" #'dired-open-xdg dired-mode-map))) ;; Gnus support in dired