From eb09b6aaa290c5cfd06aa7939683a30ce29979fb Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Mon, 4 Apr 2022 19:38:22 +0200 Subject: In progress --- src/p_options.go | 9 +++++++-- 1 file 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 } -- cgit v1.2.3