diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/p_options.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/p_options.go b/src/p_options.go index f62d3e4..6f43ae4 100644 --- a/src/p_options.go +++ b/src/p_options.go @@ -85,9 +85,14 @@ func find_options_file() string { } dir, err := os.UserHomeDir() if err != nil { - log.Fatal(err) + log.Println(err) + } else { + file_path = dir + "/.config/" + OPTIONS_FILE + if check_file_exists(file_path) == true { + return file_path + } } - file_path = dir + "/.config/" + OPTIONS_FILE + file_path = "/usr/local/share/" + OPTIONS_FILE if check_file_exists(file_path) == true { return file_path } |