summaryrefslogtreecommitdiff
path: root/monitor/goa
Commit message (Collapse)AuthorAgeFilesLines
* goa: Prevent automounts when resuming from suspensionOndrej Holy2022-07-011-2/+0
| | | | | | | | | | | | 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
* Add PartOf= to all systemd unitsHenri Chain2021-10-011-0/+1
| | | | | | | | | | | | | The `PartOf` directive sets up a one-way dependency between `graphical-session.target` and our services, so that when `graphical-session.target` is stopped or restarted, our services also get stopped or restarted. This ensures that gvfs daemons that were started in the context of a GUI login session (through dbus activation) do not continue to run after the user has logged out. See `systemd.unit(5)` for more info.
* Move systemd services to session sliceHenri Chain2021-10-011-0/+1
| | | | | | | | | | | | | | | | This puts all gvfs systemd services (which are all dbus-activated through `SystemdService=`) inside of the `session` slice that was introduced in v249 (https://github.com/systemd/systemd/pull/16603) and described in https://systemd.io/DESKTOP_ENVIRONMENTS/ and `systemd.special(7)` This allows sysadmins or OS integrators to assign higher-priority `systemd.resource-control(5)` on `session.slice` and have it propagate down to important session services such as gvfs, so that the gvfs daemons receive sufficient priority for resource allocations to keep the session running smoothly under load. Note that it still works on older systemd (the slice, which is just a cgroup inner directory, is created on demand)
* Drop use of volatile qualifierOndrej Holy2021-02-121-1/+1
| | | | | | | GVfs build with --werror fails currently because of glib!1719. Let's drop the volatile qualifier as it doesn't help with atomicity anyway. Relates: https://gitlab.gnome.org/GNOME/glib/-/issues/600
* goa: Add support for certificate promptsOndrej Holy2020-01-291-2/+96
| | | | | | | | | | Since commit f5ee590e, it is not possible to access Nextcloud/ownCloud shares with self-signed (or invalid) certificates. This is because the mount operation is handled by GOA volume monitor and the prompt to accept certificate is not shown. Let's update the volume monitor to handle just passwords and show the prompt to the client. Fixes: https://gitlab.gnome.org/GNOME/gvfs/issues/251
* build: Remove `rpath` parameterIñigo Martínez2019-07-191-1/+0
| | | | | | | | Target executables used as monitors do not depend on `libgvfscommon` or `libgvfsdaemon`, which are `gvfs` libraries installed outside of the default library directory. Due to this reason, they don't need to set `rpath` parameter.
* build: Do not use prefix on directory variablesIñigo Martínez2019-01-211-1/+1
| | | | | | | | | Although usually directory variables are set by using the `prefix` directory, this might cause issues due to parameters that need relative directories. In order to ease the transition `prefix` directory has been stripped from directory variables and only has been appended when necessary.
* build: Fix the use of pkg-config file variablesIñigo Martínez2019-01-211-1/+1
| | | | | | | | | The names of the variables in meson corresponding to the variables obtained from the pkg-config files has been fixed by using a pattern. The pattern uses the dependency name as the prefix and the obtained variable as the suffix.
* build: Add trailing commasIñigo Martínez2019-01-211-4/+4
| | | | | | | Add missing trailing commas that avoids getting noise when another file/parameter is added and eases reviewing changes[0]. [0] https://gitlab.gnome.org/GNOME/dconf/merge_requests/11#note_291585
* build: Make monitors build commands commonIñigo Martínez2019-01-211-36/+0
| | | | | | | | | | | | | | All the available monitors install a set of files: volume monitor files, DBus service files, etc... These build commands are mostly common and only file names change, which are built using a given pattern. These build commands have been replaced by only one set of build commands that adapt to monitors needs by changing their name and simplifies the entire process. These changes also help installing `GOA` and `MTP` necessary test files.
* Revert "build: Make monitors build commands common"Ondrej Holy2019-01-071-0/+36
| | | | This reverts commit c25bc351bb2605e57bc9a6d9250c9d4748c3d9e0.
* Revert "build: Add trailing commas"Ondrej Holy2019-01-071-4/+4
| | | | This reverts commit f4ee93b06cfc4d9f727f9174e40d08097a25d571.
* Revert "build: Fix the use of pkg-config file variables"Ondrej Holy2019-01-071-1/+1
| | | | This reverts commit 22e9f7721b891b17cd726f1bf92b15a35be34d22.
* Revert "build: Do not use prefix on directory variables"Ondrej Holy2019-01-071-1/+1
| | | | This reverts commit db31059d1b7b11b597b03064329fb1e8899b11f2.
* build: Do not use prefix on directory variablesIñigo Martínez2019-01-041-1/+1
| | | | | | | | | Although usually directory variables are set by using the `prefix` directory, this might cause issues due to parameters that need relative directories. In order to ease the transition `prefix` directory has been stripped from directory variables and only has been appended when necessary.
* build: Fix the use of pkg-config file variablesIñigo Martínez2019-01-041-1/+1
| | | | | | | | | The names of the variables in meson corresponding to the variables obtained from the pkg-config files has been fixed by using a pattern. The pattern uses the dependency name as the prefix and the obtained variable as the suffix.
* build: Add trailing commasIñigo Martínez2019-01-041-4/+4
| | | | | | | Add missing trailing commas that avoids getting noise when another file/parameter is added and eases reviewing changes[0]. [0] https://gitlab.gnome.org/GNOME/dconf/merge_requests/11#note_291585
* build: Make monitors build commands commonIñigo Martínez2019-01-041-36/+0
| | | | | | | | | | | | | | All the available monitors install a set of files: volume monitor files, DBus service files, etc... These build commands are mostly common and only file names change, which are built using a given pattern. These build commands have been replaced by only one set of build commands that adapt to monitors needs by changing their name and simplifies the entire process. These changes also help installing `GOA` and `MTP` necessary test files.
* build: Remove autotoolsIñigo Martínez2018-04-062-63/+0
| | | | | | | To avoid the burden of maintaining multiple build systems, this patch removes autotools support. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* build: Revise dependenciesIñigo Martínez2018-04-031-2/+3
| | | | | | | | | | | | | | | gvfs is using a set of glib libraries (gio-2.0, gio-unix-2.0, glib, gobject-2.0) in almost all the created objects. However, these dependencies are not always necessary. gvfs' meson port also uses some internal dependencies formed by built libraries. This internal dependencies depend on other dependendecies as well. These both issues have been fixed by reviewing all the internal dependencies and built objects. https://bugzilla.gnome.org/show_bug.cgi?id=794365
* build: Make SystemdService entry conditionalIñigo Martínez2017-11-071-10/+19
| | | | | | | | | | | | When systemd user units installation is disabled, SystemdService entry should also not be present on D-Bus service files. This patch adds a common D-Bus service file template allowing, an homogeneus D-Bus service file generation and also a SystemService entry conditioned to the systemd user units installation option. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* build: Improve installation on system pathsIñigo Martínez2017-10-311-3/+3
| | | | | | | | | | | | Instead of being hardcoded, D-Bus, systemd and GIO modules paths can be checked by using the information in their correspondant pkg-config files. This patch uses the information on pkg-config files by default, and also allows the user to provide this information to avoid overwriting system files. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* build: Port to meson build systemIñigo Martínez2017-10-312-0/+56
| | | | | | | | meson is a build system focused on speed an ease of use, which helps speeding up the software development. This patch adds meson support along autotools. https://bugzilla.gnome.org/show_bug.cgi?id=786149
* goa: Fix password-based authenticationOndrej Holy2017-07-191-1/+1
| | | | | | | | | Password-based authentication used for ownCloud/Nextcloud was broken by GTask port (commit fdda284). GTask is used as user_data for async callbacks currently, however, user_data is incorrectly cast to MountOp in this case. Use g_task_get_task_data in order to fix this issue. https://bugzilla.gnome.org/show_bug.cgi?id=780496
* goa: Port GVfsGoaVolume to GTaskOndrej Holy2016-10-261-103/+69
| | | | | | GSimpleAsyncResult is deprecated in favour of GTask and should be replaced. https://bugzilla.gnome.org/show_bug.cgi?id=747412
* build: Add --with-systemduserunitdir optionYaroslav Shmelev2016-01-221-1/+2
| | | | | | | | | | | This option allows maintainers to specify the directory that contain a systemd user units, or disable it. Default location for these units is /usr/lib/systemd/user. This patch will switch from hard-coded path to configurable one. The patch was modified by Ondrej Holy <oholy@redhat.com>. https://bugzilla.gnome.org/show_bug.cgi?id=760293
* Add a corresponding systemd user service for every D-Bus session serviceSimon McVittie2015-09-303-4/+26
| | | | | | | | When using "systemd --user" in conjunction with "dbus-daemon --session --systemd-activation", this ensures that each daemon is correctly placed in its own cgroup, instead of being treated as part of dbus.service. Bug: https://bugzilla.gnome.org/show_bug.cgi?id=755760
* goa: Pick up OAuth2-based accounts with a GoaFiles interfaceDebarshi Ray2015-09-081-9/+62
| | | | | | | The Google Drive backend would be OAuth2-based, so we should include such accounts too. https://bugzilla.gnome.org/show_bug.cgi?id=739008
* Make all gvfs daemons own a name under org.gtk.vfs.*Alexander Larsson2015-09-034-4/+4
| | | | | | | | | | | | | | | | | | | This allows you to easily allow access to gvfs from a sandbox. Just give it talk access to org.gtk.vfs.* and everything will work. This change does three things: Change the existing mountpoint dbus names from org.gtk.vfs.mountpoint.foo to org.gtk.vfs.mountpoint_foo For other mountpoints, always own: org.gtk.vfs.mountpoint_$pid Change the dbus name of the volume monitors from org.gtk.Private.fooMonitor to org.gtk.vfs.fooMonitor
* goa: Pass "password" as ID when fetching the passwordDebarshi Ray2014-10-241-3/+1
| | | | | | | | | | | | | | Passing GoaAccount:id to GetPassword makes no logical sense. It works because it is ignored by GOA for ownCloud accounts. The ID is meant as a key when an account might have multiple passwords. eg., an email account can have separate passwords for IMAP and SMTP, and the keys can be "imap-password", "smtp-password". This is not the case for ownCloud and the ID field is ignored by GOA because the key is always "password". Since ownCloud is the only password-based account that this volume monitor supports, let's just use "password". https://bugzilla.gnome.org/show_bug.cgi?id=739078
* goa: Clean upDebarshi Ray2014-10-211-12/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=738883
* goa: Fix a memory leakDebarshi Ray2014-10-211-1/+5
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=738878
* Add goa-volume-monitor to gitignoreRoss Lagerwall2014-04-111-0/+1
|
* goa: fix two compilation warningsOndrej Holy2013-09-261-2/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=591228
* goa: export the activation root for volumesGiovanni Campagna2013-06-132-13/+22
| | | | | | | | Now that we can be in charge of mounts even if we have the shadow mount infrastructure, we should export it so that tracking of the associated GDaemonMount works correctly. https://bugzilla.gnome.org/show_bug.cgi?id=696279
* Fix compiler warningsBastien Nocera2013-04-021-8/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=695834
* Add GVfsGoaVolumeMonitorDebarshi Ray2013-02-058-0/+1291
https://bugzilla.gnome.org/show_bug.cgi?id=686526