diff options
| author | ewy <ewy0@protonmail.com> | 2026-05-22 17:05:14 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-05-22 17:05:14 +0200 |
| commit | 6a96d445378667b1cb746d0536683990de47b4d1 (patch) | |
| tree | 9fbe7ba4f20de969ea689b8a4f56263c96057dc0 /main.go | |
| parent | 007e2de369f9fc26da3237646de14f2af5052ee8 (diff) | |
add some ergonomics
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |
