mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 08:47:47 +02:00
Run calibre metadata server process in the background
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user