This commit is contained in:
CtrlLuzzio 2026-06-19 00:21:22 +00:00 committed by GitHub
commit 308cb9a65f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 15 additions and 15 deletions

View file

@ -1,8 +1,8 @@
[Desktop Entry]
Encoding=UTF-8
Name=Mango
Name=Mango WL
DesktopNames=mango;wlroots
Comment=mango WM
Exec=mango
Exec=mango-wl
Icon=mango
Type=Application

View file

@ -92,7 +92,7 @@ if get_option('asan')
link_args += '-fsanitize=address'
endif
executable('mango',
executable('mango-wl',
'src/mango.c',
'src/common/util.c',
'src/draw/text-node.c',
@ -122,7 +122,7 @@ dwl_ipc_protocol = 'protocols/dwl-ipc-unstable-v2.xml'
wayland_scanner_client_header = generator(
wayland_scanner,
output: '@BASENAME@-protocol.h',
output: '@BASENAME@-protocol.h',
arguments: ['client-header', '@INPUT@', '@OUTPUT@']
)
@ -133,7 +133,7 @@ wayland_scanner_private_code = generator(
)
# use generator in mmsg target
executable('mmsg',
executable('mmsg-wl',
'mmsg/mmsg.c',
wayland_scanner_private_code.process(dwl_ipc_protocol),
wayland_scanner_client_header.process(dwl_ipc_protocol),
@ -150,7 +150,7 @@ executable('mmsg',
mandir = get_option('mandir')
desktop_install_dir = join_paths(prefix, 'share/wayland-sessions')
portal_install_dir = join_paths(prefix, 'share/xdg-desktop-portal')
install_data('assets/mango.desktop', install_dir : desktop_install_dir)
install_data('assets/mango-wl.desktop', install_dir : desktop_install_dir)
install_data('assets/mango-portals.conf', install_dir : portal_install_dir)
install_data('assets/config.conf', install_dir : join_paths(sysconfdir, 'mango'))
install_data('mmsg/mmsg.1', install_dir : join_paths(mandir, 'man1'))
install_data('assets/config.conf', install_dir : join_paths(sysconfdir, 'mango-wl'))
install_data('mmsg/mmsg-wl.1', install_dir : join_paths(mandir, 'man1'))

View file

@ -2966,7 +2966,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");
@ -3832,13 +3832,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);
}
}

View file

@ -7164,8 +7164,8 @@ int32_t main(int32_t argc, char *argv[]) {
} else if (c == 'd') {
cli_debug_log = true;
} else if (c == 'v') {
printf("mango " VERSION "\n");
return EXIT_SUCCESS;
printf("mango-wl " VERSION "\n");
return EXIT_SUCCESS;
} else if (c == 'c') {
cli_config_path = optarg;
} else if (c == 'p') {
@ -7187,7 +7187,7 @@ int32_t main(int32_t argc, char *argv[]) {
cleanup();
return EXIT_SUCCESS;
usage:
printf("Usage: mango [OPTIONS]\n"
printf("Usage: mango-wl [OPTIONS]\n"
"\n"
"Options:\n"
" -v Show mango version\n"