Removed references to Windows support

The program doesn't seem to work on Windows, and I don't have the time
right now to debug it. So, at the moment, the program isn't supported on Windows.
This commit is contained in:
2024-08-15 12:37:01 -05:00
parent f8cb03bf88
commit d15a771e89
3 changed files with 5 additions and 10 deletions

View File

@@ -78,17 +78,11 @@ func main() {
flag.Parse()
// Check if config exists. If it doesn't, generate the config files.
var configPath string // Location of config files, depends on OS
currentUser, err := user.Current() // Get current user, to determine config path
if err != nil {
panic(err)
}
if runningOnWindows() {
configPath = filepath.Join("C:\\Users" + currentUser.Username + "AppData\\Local\\ccat\\")
} else {
configPath = filepath.Join("/home/" + currentUser.Username + "/.config/ccat/")
}
configPath := filepath.Join("/home/" + currentUser.Username + "/.config/ccat/")
if _, err := os.Stat(configPath); os.IsNotExist(err) {
generateDefaultConfigs(configPath)
}