From 6a96d445378667b1cb746d0536683990de47b4d1 Mon Sep 17 00:00:00 2001 From: ewy Date: Fri, 22 May 2026 17:05:14 +0200 Subject: add some ergonomics --- main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 777a067..7db9434 100644 --- a/main.go +++ b/main.go @@ -39,11 +39,13 @@ func main() { if err != nil { spool.Panic("%v\n", err) } - root := must(os.OpenRoot(".")) + root := must(os.OpenRoot(*Profile)) defer root.Close() go func() { must[any](nil, ingest.AddProfile(root.FS(), 0)) }() must[any](nil, storage.UI()) - exec.Command("xdg-open", "http://localhost:4213/").Run() + if !*storage.Headless { + exec.Command("xdg-open", "http://localhost:4213/").Run() + } c := make(chan os.Signal, 1) go signal.Notify(c, os.Interrupt, os.Kill) -- cgit v1.3.1