diff --git a/utils.go b/utils.go index 4e0ca15..94196a3 100644 --- a/utils.go +++ b/utils.go @@ -73,8 +73,8 @@ func getDistroAsciiArt() string { } userConfDir, err := os.UserConfigDir() if err != nil { - if _, err := os.Stat(path.Join("/etc/stormfetch/ascii/", id)); err == nil { - bytes, err := os.ReadFile(path.Join("/etc/stormfetch/ascii/", id)) + if _, err := os.Stat(path.Join(systemConfigDir, "stormfetch/ascii/", id)); err == nil { + bytes, err := os.ReadFile(path.Join(systemConfigDir, "stormfetch/ascii/", id)) if err != nil { return defaultAscii } @@ -89,8 +89,8 @@ func getDistroAsciiArt() string { return defaultAscii } return string(bytes) - } else if _, err := os.Stat(path.Join("/etc/stormfetch/ascii/", id)); err == nil { - bytes, err := os.ReadFile(path.Join("/etc/stormfetch/ascii/", id)) + } else if _, err := os.Stat(path.Join(systemConfigDir, "stormfetch/ascii/", id)); err == nil { + bytes, err := os.ReadFile(path.Join(systemConfigDir, "stormfetch/ascii/", id)) if err != nil { return defaultAscii }