From a3d8a9508f3d0edfffc1ab5791bb29b0ae7a79c5 Mon Sep 17 00:00:00 2001 From: louie Date: Fri, 10 Dec 2021 15:26:13 -0800 Subject: Changed name. May tidy up/differentiate 'Terminal Media Launcher' vs 'terminal-media-launcher' --- windows/cache.c | 4 ++-- windows/read_cfg.c | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'windows') diff --git a/windows/cache.c b/windows/cache.c index a7dd81e..01db0ef 100644 --- a/windows/cache.c +++ b/windows/cache.c @@ -20,11 +20,11 @@ char *get_cache_path(bool create){ //if create is asserted, build the path to the file if(create){ - sprintf(path, "%s%ctml%c", appdata, sep, sep); + sprintf(path, "%s%cterminal-media-launcher%c", appdata, sep, sep); mkdir(path); } - sprintf(path, "%s%ctml%ccache.bin", appdata, sep, sep); + sprintf(path, "%s%cterminal-media-launcher%ccache.bin", appdata, sep, sep); return path; } diff --git a/windows/read_cfg.c b/windows/read_cfg.c index 7cb98cc..2a56ef8 100644 --- a/windows/read_cfg.c +++ b/windows/read_cfg.c @@ -20,7 +20,7 @@ char *find_config(){ char choices[check_count][BUF_LEN]; int i; - sprintf(choices[0], "%s%ctml%cconfig", appdata, sep, sep); + sprintf(choices[0], "%s%cterminal-media-launcher%cconfig", appdata, sep, sep); for(i = 0; i < check_count; i++){ path = choices[i]; @@ -69,10 +69,10 @@ void mkconfig_wizard(char *path){ exit(1); } - sprintf(path, "%s%ctml%c", appdata, sep, sep); + sprintf(path, "%s%cterminal-media-launcher%c", appdata, sep, sep); mkdir(path); - sprintf(path, "%s%ctml%cconfig", appdata, sep, sep); + sprintf(path, "%s%cterminal-media-launcher%cconfig", appdata, sep, sep); //open file for writing, make sure non-NULL fp = fopen(path, "w"); @@ -81,8 +81,8 @@ void mkconfig_wizard(char *path){ exit(1); } - fprintf(fp, "# This file was auto-generated by tml. See docs\\tml-config.md or tml-config(5) for documentation\n" - "# By default, no launcher is specified for any group. When no launcher is specified on the Windows build of tml, media files will be opened with their default application.\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" + "# By default, no launcher is specified for any group. When no launcher is specified on the Windows build of terminal-media-launcher, media files will be opened with their default application.\n" "# It is generally recommended to specify a launcher for groups containing media files using the \"setLauncher\" command\n\n" "# Recursively add files from %s%cMusic%c to Music group\n" "addGroup Music\n", home, sep, sep); -- cgit