mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +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
@ -886,8 +886,15 @@ user_menu_cmd (struct WEdit *edit_widget)
|
|||||||
if (!exist_file (menu))
|
if (!exist_file (menu))
|
||||||
{
|
{
|
||||||
g_free (menu);
|
g_free (menu);
|
||||||
menu = concat_dir_and_file
|
menu =
|
||||||
(mc_share_data_dir, edit_widget ? EDIT_GLOBAL_MENU : MC_GLOBAL_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
|
||||||
|
(mc_share_data_dir, edit_widget ? EDIT_GLOBAL_MENU : MC_GLOBAL_MENU);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user