GIO_USE_VOLUME_MONITOR and GIO_USE_FILE_MONITOR do not work as documented
From the documentation:
GIO_USE_VOLUME_MONITOR. This variable can be set to the name of a GVolumeMonitor implementation to override the default for debugging purposes. The GVolumeMonitor implementation for local files that is included in GIO has the name "unix", the udisks2-based implementation in the gvfs module has the name "udisks2". The special value help can be used to print a list of available implementations to standard output.
In reality, the setting GIO_USE_VOLUME_MONITOR=help
doesn't seem to do anything:
env GIO_USE_VOLUME_MONITOR=help gio mount -o
Monitoring events. Press Ctrl+C to quit.
^C⏎
env GIO_USE_VOLUME_MONITOR=help gio mount -l list
Drive(0): SanDisk SD8SBBU120G1122
Type: GProxyDrive (GProxyVolumeMonitorUDisks2)
Volume(0): 59 GB Volume
Type: GProxyVolume (GProxyVolumeMonitorUDisks2)
I'm suspicious that the local
setting is also not working as expected. If I start a D-Bus session bus with GIO_USE_VOLUME_MONITOR=local
set, I still see a lot of messages from GVFS-RemoteVolumeMonitor
log domain. I might be misunderstanding something though...