summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-05-22 17:05:14 +0200
committerewy <ewy0@protonmail.com>2026-05-22 17:05:14 +0200
commit6a96d445378667b1cb746d0536683990de47b4d1 (patch)
tree9fbe7ba4f20de969ea689b8a4f56263c96057dc0 /main.go
parent007e2de369f9fc26da3237646de14f2af5052ee8 (diff)
add some ergonomics
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 4 insertions, 2 deletions
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)