mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-06-19 14:33:16 -04:00
build: rename binaries and paths to allow side-by-side installation
Changed the binary names to mango-wl and mmsg-wl and the configuration paths to mango-wl/ to allow parallel installations of mango main branch and wl-roots only.
This commit is contained in:
parent
10b2b733c5
commit
5b19c8da93
5 changed files with 15 additions and 15 deletions
|
|
@ -2797,7 +2797,7 @@ bool parse_config_file(Config *config, const char *file_path, bool must_exist) {
|
|||
"variable not set.\n");
|
||||
return false;
|
||||
}
|
||||
snprintf(full_path, sizeof(full_path), "%s/.config/mango/%s", home,
|
||||
snprintf(full_path, sizeof(full_path), "%s/.config/mango-wl/%s", home,
|
||||
file_path + 1);
|
||||
}
|
||||
file = fopen(full_path, "r");
|
||||
|
|
@ -3581,13 +3581,13 @@ bool parse_config(void) {
|
|||
return false;
|
||||
}
|
||||
// 构建日志文件路径
|
||||
snprintf(filename, sizeof(filename), "%s/.config/mango/config.conf",
|
||||
snprintf(filename, sizeof(filename), "%s/.config/mango-wl/config.conf",
|
||||
homedir);
|
||||
|
||||
// 检查文件是否存在
|
||||
if (access(filename, F_OK) != 0) {
|
||||
// 如果文件不存在,则使用 /etc/mango/config.conf
|
||||
snprintf(filename, sizeof(filename), "%s/mango/config.conf",
|
||||
// 如果文件不存在,则使用 /etc/mango-wl/config.conf
|
||||
snprintf(filename, sizeof(filename), "%s/mango-wl/config.conf",
|
||||
SYSCONFDIR);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue