menu file now searched also in mc_sysconfig_dir directory

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2011-01-20 17:34:07 +02:00
parent 71e70a017f
commit 8af4c9ca7f
1 changed files with 9 additions and 2 deletions

View File

@ -886,8 +886,15 @@ user_menu_cmd (struct WEdit *edit_widget)
if (!exist_file (menu))
{
g_free (menu);
menu = concat_dir_and_file
(mc_share_data_dir, edit_widget ? EDIT_GLOBAL_MENU : MC_GLOBAL_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
(mc_share_data_dir, edit_widget ? EDIT_GLOBAL_MENU : MC_GLOBAL_MENU);
}
}
}
}