[gvfs/wip/oholy/goa-remounts: 3/3] goa: Prevent automounts when resuming from suspension
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/oholy/goa-remounts: 3/3] goa: Prevent automounts when resuming from suspension
- Date: Fri, 1 Jul 2022 07:30:28 +0000 (UTC)
commit 2761d1beb9160416d4a62392fc21cc6d30a7e92c
Author: Ondrej Holy <oholy redhat com>
Date: Wed Jun 29 08:49:45 2022 +0200
goa: Prevent automounts when resuming from suspension
When on WiFi, the NextCloud account is automatically mounted after
resuming from suspension. This is because the `Account.AttentionNeeded`
property changes its value and GOA volume monitor calls mount operation
in that case. It is not obvious to me why this code is here. Also this
is maybe bug on GOA side. But anyway, other backends simply just unmount
when something changes, but don't mount again automatically. I suppose we
should do the same here as well to avoid these unwanted automounts.
Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/634
monitor/goa/goavolume.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/monitor/goa/goavolume.c b/monitor/goa/goavolume.c
index 5e9097c6..49906f30 100644
--- a/monitor/goa/goavolume.c
+++ b/monitor/goa/goavolume.c
@@ -99,8 +99,6 @@ account_attention_needed_cb (GObject *_object, GParamSpec *pspec, gpointer user_
g_clear_object (&self->mount);
}
}
- else
- g_volume_mount (G_VOLUME (self), G_MOUNT_MOUNT_NONE, NULL, NULL, NULL, NULL);
}
/* ---------------------------------------------------------------------------------------------------- */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]