[nautilus/gnome-3-20] mime-actions: check for fuse for default applications



commit c5d645b95900530873f916a1d6033db4752e26d5
Author: Carlos Soriano <csoriano gnome org>
Date:   Tue Apr 26 11:31:05 2016 +0200

    mime-actions: check for fuse for default applications
    
    We were checking if the file is native, and if not, we request the
    default applications that they must handle uris.
    
    However, we can use FUSE in order to convert those uris to local paths
    and therefore use a wider variety of applications.
    
    This fix some default application not being available in network
    locations.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=764506

 src/nautilus-mime-actions.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index c8e88bc..21f6246 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -407,7 +407,8 @@ nautilus_mime_get_default_application_for_file (NautilusFile *file)
        }
 
        mime_type = nautilus_file_get_mime_type (file);
-       app = g_app_info_get_default_for_type (mime_type, !nautilus_file_is_local (file));
+       app = g_app_info_get_default_for_type (mime_type,
+                                               !nautilus_file_is_local_or_fuse (file));
        g_free (mime_type);
 
        if (app == NULL) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]