summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2016-04-26 11:31:05 +0200
committerCarlos Soriano <csoriano@gnome.org>2016-04-26 11:32:45 +0200
commit4df06e7f14ffefedc65bae84fca1cd7f5e945f78 (patch)
tree43f29558f70f4aec802334c2dda4cf09f87b5839
parent2f1765d80392c06166d077c27a9a6661edd7c128 (diff)
downloadnautilus-4df06e7f14ffefedc65bae84fca1cd7f5e945f78.tar.gz
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
-rw-r--r--src/nautilus-mime-actions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index c09ca43e6..b53af9153 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) {