From 99f55748ef69a68df86b9a039998ee576d59b898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 7 Jun 2018 19:55:45 +0200 Subject: file: Also use FS remote attribute in is_remote Gio can provide us this info, so we can use this together with the checks nautilus already does. However, since there are many false-positives cases (like when using a fuse filesystem that is actually a remote mount, like sshfs or similar), we can't take this information as granted. --- src/nautilus-file.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/nautilus-file.h') diff --git a/src/nautilus-file.h b/src/nautilus-file.h index 0eb5b3a96..8fce62505 100644 --- a/src/nautilus-file.h +++ b/src/nautilus-file.h @@ -248,6 +248,8 @@ char * nautilus_file_get_filesystem_id (Nautilu char * nautilus_file_get_filesystem_type (NautilusFile *file); +gboolean nautilus_file_get_filesystem_remote (NautilusFile *file); + NautilusFile * nautilus_file_get_trash_original_file (NautilusFile *file); /* Permissions. */ -- cgit v1.2.1