diff options
author | Ondrej Holy <oholy@redhat.com> | 2018-07-24 14:47:45 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2018-07-24 16:36:27 +0200 |
commit | 37e5e6b7950e3540009728f3e67c2ec4addf8ba7 (patch) | |
tree | 7be77192aef36025738968aee2a9c00617e9078a /daemon/gvfsbackendafpbrowse.c | |
parent | 7990d4c2b896e70e6f62602a1557be80eb84d739 (diff) | |
download | gvfs-37e5e6b7950e3540009728f3e67c2ec4addf8ba7.tar.gz |
afp: Do not claim that mountable can be unmounted
G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT is set to TRUE, but unmount_mountable()
is not implemented. Set the attribute always to FALSE in order to prevent
errors from g_file_unmount_mountable_with_operation().
Nautilus should seamleassly use g_mount_unmount_with_operation() if the
attribute is set to FALSE.
https://gitlab.gnome.org/GNOME/gvfs/issues/15
Diffstat (limited to 'daemon/gvfsbackendafpbrowse.c')
-rw-r--r-- | daemon/gvfsbackendafpbrowse.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/daemon/gvfsbackendafpbrowse.c b/daemon/gvfsbackendafpbrowse.c index ee6d0ad9..a59160da 100644 --- a/daemon/gvfsbackendafpbrowse.c +++ b/daemon/gvfsbackendafpbrowse.c @@ -246,15 +246,10 @@ fill_info (GFileInfo *info, GVfsAfpVolumeData *vol_data, GVfsBackendAfpBrowse *a g_mount_spec_set (mount_spec, "user", afp_backend->logged_in_user); if (g_mount_tracker_has_mount_spec (afp_backend->mount_tracker, mount_spec)) - { g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT, FALSE); - g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT, TRUE); - } else - { g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_MOUNT, TRUE); - g_file_info_set_attribute_boolean(info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT, FALSE); - } + g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_MOUNTABLE_CAN_UNMOUNT, FALSE); g_mount_spec_unref (mount_spec); uri = g_strdup_printf ("afp://%s/%s", |