summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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)