Diff

clix.lua @ 173:9b36119c9900 default tip

clix.lua: There's no need to hide the config file under `$HOME/.config/`.`
author Trần H. Trung <xmpp:trần.h.trung@trung.fun>
date Thu, 13 Jul 2023 11:50:30 +0700
parent 171:eb7625161d76
line wrap: on
line diff
--- a/clix.lua	Sat Jul 08 02:58:30 2023 +0700
+++ b/clix.lua	Thu Jul 13 11:50:30 2023 +0700
@@ -32,9 +32,9 @@
 local home_dir = (os.getenv("XDG_CONFIG_HOME") or os.getenv("HOME"));
 if home_dir then
     local config_path = (home_dir.."/.config");
-    config_file, err = io.open(config_path.."/.clixrc") or io.open(config_path.."/.clix");
+    config_file, err = io.open(config_path.."/clixrc") or io.open(config_path.."/clix");
     if not config_file then
-        print("Unable to open config file... looked for "..config_path.."/.clixrc");
+        print("Unable to open config file... looked for "..config_path.."/clixrc");
         if err then print(err); end
         os.exit(1);
     end