GVolumeMonitor: Results don't reflect current state but state when application was launched
Submitted by Christian Stadelmann
Created attachment 317639 A sample C file to test bug.
Steps to reproduce:
- open python, $ python3
from gi.repository import Gio
[m.get_name() for m in Gio.VolumeMonitor.get().get_mounts()]. This will give you a list of all mounted partitions.
- mount or unmount a partition. Make sure that it shows up e.g. in nautilus.
- run command
[m.get_name() for m in Gio.VolumeMonitor.get().get_mounts()]again.
What happens: List of mounts has not changed
What should happen: List of mounts should always reflect the current state, not the state when it was initialized first.
Additional info: This issue is not specific to python. It can be easily reproduced with attached code. This issue seems to affect get_volumes() and get_connected_drives() too.
Attachment 317639, "A sample C file to test bug.":