Use setsid to spawn thunar/alacritty as non-child

This commit is contained in:
Adam Goldsmith 2023-09-29 23:08:03 -04:00
parent 1e0976215c
commit d97622ed2a

View File

@ -46,11 +46,11 @@
;;;; not sure where to put this ;;;; not sure where to put this
(defun open-thunar-in-current-directory () (defun open-thunar-in-current-directory ()
(interactive) (interactive)
(call-process "thunar" nil 0 nil ".")) (call-process "setsid" nil 0 nil "thunar" "."))
(defun open-term-in-current-directory () (defun open-term-in-current-directory ()
(interactive) (interactive)
(call-process "alacritty" nil 0 nil)) (call-process "setsid" nil 0 nil "alacritty"))
(bind-key "<s-return>" 'open-term-in-current-directory) (bind-key "<s-return>" 'open-term-in-current-directory)
(bind-key "s-t" 'open-thunar-in-current-directory) (bind-key "s-t" 'open-thunar-in-current-directory)