:right-sidebar: True UnixMountMonitor =================================================================== .. currentmodule:: gi.repository.Gio .. class:: UnixMountMonitor(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` Watches ``GUnixMounts`` for changes. Constructors ------------ .. rst-class:: interim-class .. class:: UnixMountMonitor :no-index: .. classmethod:: new() -> ~gi.repository.Gio.UnixMountMonitor Deprecated alias for :func:`~gi.repository.Gio.UnixMountMonitor.get`. This function was never a true constructor, which is why it was renamed. .. deprecated:: 2.44 Use :func:`~gi.repository.Gio.UnixMountMonitor.get` instead. Methods ------- .. rst-class:: interim-class .. class:: UnixMountMonitor :no-index: .. classmethod:: get() -> ~gi.repository.Gio.UnixMountMonitor Gets the :obj:`~gi.repository.Gio.UnixMountMonitor` for the current thread-default main context. The mount monitor can be used to monitor for changes to the list of mounted filesystems as well as the list of mount points (ie: fstab entries). You must only call :func:`~gi.repository.GObject.GObject.Object.unref` on the return value from under the same main context as you called this function. .. versionadded:: 2.44 .. method:: set_rate_limit(limit_msec: int) -> None This function does nothing. Before 2.44, this was a partially-effective way of controlling the rate at which events would be reported under some uncommon circumstances. Since ``mount_monitor`` is a singleton, it also meant that calling this function would have side effects for other users of the monitor. .. versionadded:: 2.18 .. deprecated:: 2.44 This function does nothing. Don't call it. :param limit_msec: a integer with the limit in milliseconds to poll for changes. Signals ------- .. rst-class:: interim-class .. class:: UnixMountMonitor.signals :no-index: .. method:: mountpoints_changed() -> None The type of the None singleton. .. method:: mounts_changed() -> None The type of the None singleton.