From ce4ea6ea5325d5c84032586b3e324e93cb050e67 Mon Sep 17 00:00:00 2001 From: Gokcehan Date: Sat, 4 Jul 2020 03:41:37 +0300 Subject: [PATCH] start server process in home directory Related #287 --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index 007a6d6..b394ece 100644 --- a/main.go +++ b/main.go @@ -63,6 +63,7 @@ func exportEnvVars() { func startServer() { cmd := detachedCommand(os.Args[0], "-server") + cmd.Dir = gUser.HomeDir if err := cmd.Start(); err != nil { log.Printf("starting server: %s", err) }