Commit b9c51fd4 authored by Cosimo Cecchi's avatar Cosimo Cecchi

view: show applications for non launcher desktop files

https://bugzilla.gnome.org/show_bug.cgi?id=319981
parent 5a47a484
......@@ -759,8 +759,7 @@ gboolean
nautilus_mime_file_opens_in_view (NautilusFile *file)
{
return (nautilus_file_is_directory (file) ||
NAUTILUS_IS_DESKTOP_ICON_FILE (file) ||
nautilus_file_is_nautilus_link (file));
NAUTILUS_IS_DESKTOP_ICON_FILE (file));
}
static ActivationAction
......@@ -769,7 +768,7 @@ get_activation_action (NautilusFile *file)
ActivationAction action;
char *activation_uri;
if (nautilus_file_is_launcher (file)) {
if (nautilus_file_is_nautilus_link (file)) {
return ACTIVATION_ACTION_LAUNCH_DESKTOP_FILE;
}
......
......@@ -4491,9 +4491,8 @@ reset_open_with_menu (NautilusView *view, GList *selection)
file = NAUTILUS_FILE (node->data);
other_applications_visible &=
(!nautilus_mime_file_opens_in_view (file) ||
nautilus_file_is_directory (file));
other_applications_visible &= (!nautilus_mime_file_opens_in_view (file) &&
!nautilus_file_is_nautilus_link (file));
}
default_app = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment