[nautilus] mime-actions: check for fuse for default applications



commit 4df06e7f14ffefedc65bae84fca1cd7f5e945f78
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 c09ca43..b53af91 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -405,7 +405,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]