From b91aa27f435d1ada8120e7d201cbe6efc86b0d3d Mon Sep 17 00:00:00 2001 From: Zedhugh Chen Date: Sat, 29 Mar 2025 05:39:25 +0800 Subject: [PATCH] modify the implementation of creature/open-in-external-app "call-process" created a process than not child-process of emacs, this is what I wanted in. --- lisp/init-func.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/init-func.el b/lisp/init-func.el index 415767a..18aa7ab 100644 --- a/lisp/init-func.el +++ b/lisp/init-func.el @@ -11,7 +11,7 @@ (defun creature/open-in-external-app (file-path) (if (eq system-type 'windows-nt) (w32-shell-execute "open" (replace-regexp-in-string "/" "\\\\" file-path)) - (start-process "" nil "xdg-open" file-path))) + (call-process "xdg-open" nil 0 nil file-path))) (defun creature/open-file-or-directory-in-external-app (arg) (interactive "P")