summaryrefslogtreecommitdiff
path: root/unix/read_cfg.c
diff options
context:
space:
mode:
authorlouie <lshprung@yahoo.com>2021-12-10 15:26:13 -0800
committerlouie <lshprung@yahoo.com>2021-12-10 15:26:13 -0800
commita3d8a9508f3d0edfffc1ab5791bb29b0ae7a79c5 (patch)
treef546c0bf53e07fec255529c82c42148b1c9f0ae1 /unix/read_cfg.c
parente58f35f4580ad4377c3ba5dcaee5bbbd938713c6 (diff)
Changed name. May tidy up/differentiate 'Terminal Media Launcher' vs 'terminal-media-launcher'
Diffstat (limited to 'unix/read_cfg.c')
-rw-r--r--unix/read_cfg.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/unix/read_cfg.c b/unix/read_cfg.c
index 3da4b4d..4d98c82 100644
--- a/unix/read_cfg.c
+++ b/unix/read_cfg.c
@@ -20,8 +20,8 @@ char *find_config(){
int check_count = 2;
int i;
- sprintf(choices[0], "%s%c.config%ctml%cconfig", home, sep, sep, sep);
- sprintf(choices[1], "%s%c.tml%cconfig", home, sep, sep);
+ 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);
for(i = 0; i < check_count; i++){
path = choices[i];
@@ -67,10 +67,10 @@ void mkconfig_wizard(char *path){
sprintf(path, "%s%c.config%c", home, sep, sep);
mkdir(path, 0755);
- sprintf(path, "%s%c.config%ctml%c", home, sep, sep, sep);
+ sprintf(path, "%s%c.config%cterminal-media-launcher%c", home, sep, sep, sep);
mkdir(path, 0755);
- sprintf(path, "%s%c.config%ctml%cconfig", home, sep, sep, sep);
+ sprintf(path, "%s%c.config%cterminal-media-launcher%cconfig", home, sep, sep, sep);
//open file for writing, make sure non-NULL
fp = fopen(path, "w");
@@ -80,7 +80,7 @@ void mkconfig_wizard(char *path){
}
//write to file
- fprintf(fp, "# This file was auto-generated by tml. See docs/tml-config.md or tml-config(5) for documentation\n"
+ fprintf(fp, "# This file was auto-generated by terminal-media-launcher. See docs/terminal-media-launcher-config.md or terminal-media-launcher-config(5) for documentation\n"
"# The default launcher is set to \"xdg-open\" which will open files based on the relevant default application set through xdg\n\n"
"# Recursively add files from %s%cMusic%c to Music group\n"
"addGroup Music\n"