diff --git a/go-daemon/info.go b/go-daemon/info.go index 21513f1..3848db5 100644 --- a/go-daemon/info.go +++ b/go-daemon/info.go @@ -22,12 +22,12 @@ func checkExists(path string) (bool, error) { func Info() { // A SAMPLE COMMAND FOR LOGGING OS INFORMATION TO A DEDICATED FILE - // userhome, err := os.UserHomeDir() // TODO $HOME is not defined while running as daemon !!! - // if err != nil { - // log.Fatal(err) - // } + userhome, err := os.UserHomeDir() // TODO $HOME is not defined while running as daemon !!! + if err != nil { + log.Fatal(err) + } - userhome := "/home/asandikci" // TEMPORARY + // userhome := "/home/asandikci" // TEMPORARY configDir := userhome + "/.config/" + ProgramName + "/" // TODO Will be replaced with a Go Config Library