mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 18:14:25 +03:00
menu file now searched also in mc_sysconfig_dir directory
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
71e70a017f
commit
8af4c9ca7f
@ -884,6 +884,12 @@ user_menu_cmd (struct WEdit *edit_widget)
|
||||
concat_dir_and_file (mc_config_get_home_dir (),
|
||||
edit_widget ? EDIT_GLOBAL_MENU : MC_GLOBAL_MENU);
|
||||
if (!exist_file (menu))
|
||||
{
|
||||
g_free (menu);
|
||||
menu =
|
||||
concat_dir_and_file (mc_sysconfig_dir,
|
||||
edit_widget ? EDIT_GLOBAL_MENU : MC_GLOBAL_MENU);
|
||||
if (!exist_file (menu))
|
||||
{
|
||||
g_free (menu);
|
||||
menu = concat_dir_and_file
|
||||
@ -891,6 +897,7 @@ user_menu_cmd (struct WEdit *edit_widget)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!g_file_get_contents (menu, &data, NULL, NULL))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user