From d97622ed2a6ce60ceecfed649fd43bdf0c5e9bcc Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Fri, 29 Sep 2023 23:08:03 -0400 Subject: [PATCH] Use setsid to spawn thunar/alacritty as non-child --- .emacs.d/init.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 89fb362..436445b 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -46,11 +46,11 @@ ;;;; not sure where to put this (defun open-thunar-in-current-directory () (interactive) - (call-process "thunar" nil 0 nil ".")) + (call-process "setsid" nil 0 nil "thunar" ".")) (defun open-term-in-current-directory () (interactive) - (call-process "alacritty" nil 0 nil)) + (call-process "setsid" nil 0 nil "alacritty")) (bind-key "" 'open-term-in-current-directory) (bind-key "s-t" 'open-thunar-in-current-directory)