e: rename applications menu to fit xdg menu spec
Backported by Thanatermesis for E17: Conflicts: data/etc/Makefile.mk Fixed the old Makefile.am one instead
This commit is contained in:
parent
cae503d4d1
commit
9195d17b47
|
@ -10,7 +10,7 @@ menusdir = $(sysconfdir)/xdg/menus
|
|||
menus_DATA =
|
||||
|
||||
if INSTALL_ENLIGHTENMENT_MENU
|
||||
menus_DATA += enlightenment.menu
|
||||
menus_DATA += e-applications.menu
|
||||
endif
|
||||
|
||||
EXTRA_DIST = $(files_DATA) $(menus_DATA)
|
||||
|
|
|
@ -32,12 +32,12 @@ e_order_init(void)
|
|||
char buf[PATH_MAX];
|
||||
|
||||
E_FREE(menu_file);
|
||||
snprintf(buf, sizeof(buf), "/etc/xdg/menus/enlightenment.menu");
|
||||
snprintf(buf, sizeof(buf), "/etc/xdg/menus/e-applications.menu");
|
||||
if (ecore_file_exists(buf)) menu_file = strdup(buf);
|
||||
else
|
||||
{
|
||||
snprintf(buf, sizeof(buf),
|
||||
"%s/etc/xdg/menus/enlightenment.menu",
|
||||
"%s/etc/xdg/menus/e-applications.menu",
|
||||
e_prefix_get());
|
||||
if (ecore_file_exists(buf)) menu_file = strdup(buf);
|
||||
}
|
||||
|
|
|
@ -162,7 +162,7 @@ _create_menus_list(Evas *evas, E_Config_Dialog_Data *cfdata)
|
|||
tdesc = NULL;
|
||||
e_user_homedir_concat(buf, sizeof(buf),
|
||||
".config/menus/applications.menu");
|
||||
snprintf(buf2, sizeof(buf2), "%s/etc/xdg/menus/enlightenment.menu",
|
||||
snprintf(buf2, sizeof(buf2), "%s/etc/xdg/menus/e-applications.menu",
|
||||
e_prefix_get());
|
||||
if (!strcmp("/etc/xdg/menus/applications.menu", file))
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@ wizard_page_show(E_Wizard_Page *pg __UNUSED__)
|
|||
{
|
||||
char buf[PATH_MAX];
|
||||
|
||||
snprintf(buf, sizeof(buf), "%s/etc/xdg/menus/enlightenment.menu",
|
||||
snprintf(buf, sizeof(buf), "%s/etc/xdg/menus/e-applications.menu",
|
||||
e_prefix_get());
|
||||
e_config->default_system_menu = eina_stringshare_add(buf);
|
||||
return 0; /* 1 == show ui, and wait for user, 0 == just continue */
|
||||
|
|
Loading…
Reference in New Issue