summaryrefslogtreecommitdiff
path: root/src/unix/read_cfg.c
diff options
context:
space:
mode:
authorLouie Shprung <lshprung@tutanota.com>2024-08-04 17:19:08 -0400
committerLouie Shprung <lshprung@tutanota.com>2024-08-04 17:19:08 -0400
commita23c315905c126667f13091989ca2879b5337582 (patch)
tree23eb508647bf90ca18282df2ab2c9cf1f3661bbd /src/unix/read_cfg.c
parente1754801f53842c289e8c75cd29ce239693f0c19 (diff)
Hello lua
Diffstat (limited to 'src/unix/read_cfg.c')
-rw-r--r--src/unix/read_cfg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unix/read_cfg.c b/src/unix/read_cfg.c
index b40dd48..4e58863 100644
--- a/src/unix/read_cfg.c
+++ b/src/unix/read_cfg.c
@@ -20,8 +20,8 @@ char *find_config(){
int check_count = 2;
int i;
- sprintf(choices[0], "%s%c.config%cterminal-media-launcher%cconfig", home, sep, sep, sep);
- sprintf(choices[1], "%s%c.terminal-media-launcher%cconfig", home, sep, sep);
+ sprintf(choices[0], "%s%c.config%cterminal-media-launcher%cconfig.lua", home, sep, sep, sep);
+ sprintf(choices[1], "%s%c.terminal-media-launcher%cconfig.lua", home, sep, sep);
for(i = 0; i < check_count; i++){
strcpy(path, choices[i]);
@@ -69,7 +69,7 @@ void mkconfig_wizard(char *path){
sprintf(path, "%s%c.config%cterminal-media-launcher%c", home, sep, sep, sep);
mkdir(path, 0755);
- sprintf(path, "%s%c.config%cterminal-media-launcher%cconfig", home, sep, sep, sep);
+ sprintf(path, "%s%c.config%cterminal-media-launcher%cconfig.lua", home, sep, sep, sep);
//open file for writing, make sure non-NULL
fp = fopen(path, "w");