From 69a513d8147ae508ec079c153f8dd9c8347d0b56 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 23 Nov 2025 10:46:32 +0530 Subject: [PATCH] Run calibre metadata server process in the background --- kittens/choose_files/calibre.go | 2 ++ 1 file changed, 2 insertions(+) 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