diff --git a/kittens/choose_files/calibre.go b/kittens/choose_files/calibre.go index 87b0daf5e..2569f807c 100644 --- a/kittens/choose_files/calibre.go +++ b/kittens/choose_files/calibre.go @@ -19,6 +19,7 @@ import ( "github.com/kovidgoyal/kitty/tools/utils" "github.com/kovidgoyal/kitty/tools/utils/humanize" "github.com/kovidgoyal/kitty/tools/utils/images" + "golang.org/x/sys/unix" ) var _ = fmt.Print @@ -82,6 +83,7 @@ var calibre_server = sync.OnceValues(func() (ans *calibre_server_process, err er ans.stdout.Close() return nil, err } + ans.proc.SysProcAttr = &unix.SysProcAttr{Setsid: true} if err = ans.proc.Start(); err != nil { err = fmt.Errorf("calibre-debug executable not found in PATH, you must install the calibre program to preview these file types: %w", err) return