diff options
author | Ondrej Holy <oholy@redhat.com> | 2019-05-14 09:31:37 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2019-07-11 11:24:17 +0000 |
commit | e782512ba06374bdc45998a9b7908f5b3c500393 (patch) | |
tree | 0c0d2710556c973a67a2eee8aa33c3da6d0cba50 /daemon/gvfsbackendmtp.c | |
parent | 6493083b1d7a839257e7dcec390c6ae20c0f3aa4 (diff) | |
download | gvfs-e782512ba06374bdc45998a9b7908f5b3c500393.tar.gz |
daemon: Handle lockdown option to disable writing
Handle the new mount-removable-storage-devices-as-read-only option of
org.gnome.desktop.lockdown schema and present AFC, MTP, GPhoto2 devices
as read-only if enabled.
Diffstat (limited to 'daemon/gvfsbackendmtp.c')
-rw-r--r-- | daemon/gvfsbackendmtp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/daemon/gvfsbackendmtp.c b/daemon/gvfsbackendmtp.c index e3a25ef2..c4f1e855 100644 --- a/daemon/gvfsbackendmtp.c +++ b/daemon/gvfsbackendmtp.c @@ -379,6 +379,7 @@ g_vfs_backend_mtp_init (GVfsBackendMtp *backend) g_mutex_init (&backend->mutex); g_vfs_backend_set_display_name (G_VFS_BACKEND (backend), "mtp"); g_vfs_backend_set_icon_name (G_VFS_BACKEND (backend), "multimedia-player"); + g_vfs_backend_handle_readonly_lockdown (G_VFS_BACKEND (backend)); mount_spec = g_mount_spec_new ("mtp"); g_vfs_backend_set_mount_spec (G_VFS_BACKEND (backend), mount_spec); |