GioUnix.MountMonitor

g GObject.Object GObject.Object GioUnix.MountMonitor GioUnix.MountMonitor GObject.Object->GioUnix.MountMonitor

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

get ()

class

new ()

class

set_rate_limit (mount_monitor, limit_msec)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Name

Short Description

mountpoints-changed

Emitted when the unix mount points have changed.

mounts-changed

Emitted when the unix mounts have changed.

Fields

Inherited:

GObject.Object (1)

Class Details

class GioUnix.MountMonitor(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GioUnix.MountMonitorClass

Watches #GUnixMounts for changes.

classmethod get()
Returns:

the GioUnix.MountMonitor.

Return type:

Gio.UnixMountMonitor

Gets the GioUnix.MountMonitor 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 GObject.Object.unref() on the return value from under the same main context as you called this function.

New in version 2.44.

classmethod new()
Returns:

a GioUnix.MountMonitor.

Return type:

Gio.UnixMountMonitor

Deprecated alias for GioUnix.MountMonitor.get().

This function was never a true constructor, which is why it was renamed.

Deprecated since version 2.44: Use GioUnix.MountMonitor.get() instead.

classmethod set_rate_limit(mount_monitor, limit_msec)
Parameters:

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.

New in version 2.18.

Deprecated since version 2.44: This function does nothing. Don’t call it.

Signal Details

GioUnix.MountMonitor.signals.mountpoints_changed(mount_monitor)
Signal Name:

mountpoints-changed

Flags:

RUN_LAST

Parameters:

mount_monitor (GioUnix.MountMonitor) – The object which received the signal

Emitted when the unix mount points have changed.

GioUnix.MountMonitor.signals.mounts_changed(mount_monitor)
Signal Name:

mounts-changed

Flags:

RUN_LAST

Parameters:

mount_monitor (GioUnix.MountMonitor) – The object which received the signal

Emitted when the unix mounts have changed.