diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -18,7 +18,6 @@ import ( "embed" "net" "os" - "path/filepath" "time" "github.com/digitalocean/go-qemu/hypervisor" @@ -33,11 +32,6 @@ var hv *hypervisor.Hypervisor var resources embed.FS func main() { - if os.Getenv("VIRTIGO_HOME") == "" { - homeDir, _ := os.UserHomeDir() - fullpath := filepath.Join(homeDir, ".config/virtigo") - os.Setenv("VIRTIGO_HOME", fullpath) - } var pp *arg.Parser pp = arg.MustParse(&argv) @@ -45,6 +39,7 @@ func main() { pp.WriteHelp(os.Stdout) os.Exit(0) } + me = new(Virtigod) me.Hostname, _ = os.Hostname() log.DaemonMode(true) |
