diff options
author | louie <lshprung@yahoo.com> | 2020-07-30 10:15:20 -0700 |
---|---|---|
committer | louie <lshprung@yahoo.com> | 2020-07-30 10:15:20 -0700 |
commit | 2ee23565a15bd969828db7442f2f8b4902d5e261 (patch) | |
tree | db9e8e51d3eddedc05a4f5c108b2f2b055a8deeb /draw.c | |
parent | 5efd6914fbc8101127bed8feda8b02ccb554b79a (diff) |
Added standard location(s) for config files
Diffstat (limited to 'draw.c')
-rw-r--r-- | draw.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -48,7 +48,7 @@ int e_offset = 0; //TODO consider figuring out where some refreshes are unecessary int main(int argc, char **argv){ - char *cfg_path = "config"; + char *cfg_path; bool tall = true; //is the window a certain height (tbd what the threshold should be TODO) bool wide = true; //is the window a certain width (tbd what the threshold should be TODO) int input; @@ -56,6 +56,7 @@ int main(int argc, char **argv){ //if a config path was given as an argument, set it accordingly if(argc > 2 && (!strcmp(argv[1], "-c") || !strcmp(argv[1], "--cfg_path"))) cfg_path = argv[2]; + else cfg_path = find_config(); //Fill Groups cfg_interp(cfg_path); //read the contents of the cfg file |