start server process in home directory

Related #287
This commit is contained in:
Gokcehan 2020-07-04 03:41:37 +03:00
parent 45552cf809
commit ce4ea6ea53

View File

@ -63,6 +63,7 @@ func exportEnvVars() {
func startServer() { func startServer() {
cmd := detachedCommand(os.Args[0], "-server") cmd := detachedCommand(os.Args[0], "-server")
cmd.Dir = gUser.HomeDir
if err := cmd.Start(); err != nil { if err := cmd.Start(); err != nil {
log.Printf("starting server: %s", err) log.Printf("starting server: %s", err)
} }