Skip to content

Commit

Permalink
start server process in home directory
Browse files Browse the repository at this point in the history
Related #287
  • Loading branch information
gokcehan committed Jul 4, 2020
1 parent 45552cf commit ce4ea6e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit ce4ea6e

Please sign in to comment.