diff --git a/src/bin/e_apps.c b/src/bin/e_apps.c index b8408440f..74ca552b9 100644 --- a/src/bin/e_apps.c +++ b/src/bin/e_apps.c @@ -1021,7 +1021,8 @@ int e_app_valid_exe_get(E_App *a) { if (!a->exe) return 0; - if (!ecore_file_app_installed(a->exe)) return 0; +// if (!ecore_file_app_installed(a->exe)) return 0; + return 1; } diff --git a/src/bin/e_int_menus.c b/src/bin/e_int_menus.c index f0d50f64d..ef2feb8da 100644 --- a/src/bin/e_int_menus.c +++ b/src/bin/e_int_menus.c @@ -408,22 +408,25 @@ _e_int_menus_apps_scan(E_Menu *m) { a = l->data; - mi = e_menu_item_new(m); - e_menu_item_label_set(mi, a->name); - if (a->exe) + if (e_app_valid_exe_get(a)) { - e_menu_item_icon_edje_set(mi, a->path, "icon"); - e_menu_item_callback_set(mi, _e_int_menus_apps_run, a); - app_count++; - } - else - { - char buf[4096]; - - snprintf(buf, sizeof(buf), "%s/.directory.eap", a->path); - e_menu_item_icon_edje_set(mi, buf, "icon"); - e_menu_item_submenu_set(mi, e_int_menus_apps_new(a->path)); - app_count++; + mi = e_menu_item_new(m); + e_menu_item_label_set(mi, a->name); + if (a->exe) + { + e_menu_item_icon_edje_set(mi, a->path, "icon"); + e_menu_item_callback_set(mi, _e_int_menus_apps_run, a); + app_count++; + } + else + { + char buf[4096]; + + snprintf(buf, sizeof(buf), "%s/.directory.eap", a->path); + e_menu_item_icon_edje_set(mi, buf, "icon"); + e_menu_item_submenu_set(mi, e_int_menus_apps_new(a->path)); + app_count++; + } } } } diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c index c93a2ea94..72838cefc 100644 --- a/src/modules/ibar/e_mod_main.c +++ b/src/modules/ibar/e_mod_main.c @@ -335,18 +335,21 @@ _ibar_app_change(void *data, E_App *a, E_App_Change ch) { IBar_Icon *ic; - ic = _ibar_icon_new(ibb, a); - if (ic) + if (e_app_valid_exe_get(a)) { - for (ll = ib->apps->subapps; ll; ll = ll->next) + ic = _ibar_icon_new(ibb, a); + if (ic) { - E_App *a2; - - a2 = ll->data; - ic = _ibar_icon_find(ibb, a2); - if (ic) _ibar_icon_reorder_after(ic, NULL); + for (ll = ib->apps->subapps; ll; ll = ll->next) + { + E_App *a2; + + a2 = ll->data; + ic = _ibar_icon_find(ibb, a2); + if (ic) _ibar_icon_reorder_after(ic, NULL); + } + _ibar_bar_frame_resize(ibb); } - _ibar_bar_frame_resize(ibb); } } break; @@ -517,7 +520,10 @@ _ibar_bar_new(IBar *ib, E_Container *con) IBar_Icon *ic; a = l->data; - ic = _ibar_icon_new(ibb, a); + if (e_app_valid_exe_get(a)) + { + ic = _ibar_icon_new(ibb, a); + } } } ibb->align_req = 0.5;