From 5cb484de729c75da2f9be7f8ea7d94627b2343e4 Mon Sep 17 00:00:00 2001 From: asandikci Date: Thu, 27 Jul 2023 13:10:28 +0300 Subject: [PATCH] temporary changes --- c-daemon/go-files/info.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/c-daemon/go-files/info.go b/c-daemon/go-files/info.go index db48d1e..22c98d0 100644 --- a/c-daemon/go-files/info.go +++ b/c-daemon/go-files/info.go @@ -22,10 +22,12 @@ func checkExists(path string) (bool, error) { func main() { // A SAMPLE COMMAND FOR LOGGING OS INFORMATION TO A DEDICATED FILE - userhome, err := os.UserHomeDir() - 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 configDir := userhome + "/.config/" + ProgramName + "/" // TODO Will be replaced with a Go Config Library