Gio.Mount - Interfaces - Gio 2.0 (original) (raw)
g GObject.GInterface GObject.GInterface Gio.Mount Gio.Mount GObject.GInterface->Gio.Mount
Implementations:
None
Methods¶
can_eject () |
---|
can_unmount () |
eject (flags, cancellable, callback, *user_data) |
eject_finish (result) |
eject_with_operation (flags, mount_operation, cancellable, callback, *user_data) |
eject_with_operation_finish (result) |
get_default_location () |
get_drive () |
get_icon () |
get_name () |
get_root () |
get_sort_key () |
get_symbolic_icon () |
get_uuid () |
get_volume () |
guess_content_type (force_rescan, cancellable, callback, *user_data) |
guess_content_type_finish (result) |
guess_content_type_sync (force_rescan, cancellable) |
is_shadowed () |
remount (flags, mount_operation, cancellable, callback, *user_data) |
remount_finish (result) |
shadow () |
unmount (flags, cancellable, callback, *user_data) |
unmount_finish (result) |
unmount_with_operation (flags, mount_operation, cancellable, callback, *user_data) |
unmount_with_operation_finish (result) |
unshadow () |
Virtual Methods¶
do_can_eject () |
---|
do_can_unmount () |
do_changed () |
do_eject (flags, cancellable, callback, *user_data) |
do_eject_finish (result) |
do_eject_with_operation (flags, mount_operation, cancellable, callback, *user_data) |
do_eject_with_operation_finish (result) |
do_get_default_location () |
do_get_drive () |
do_get_icon () |
do_get_name () |
do_get_root () |
do_get_sort_key () |
do_get_symbolic_icon () |
do_get_uuid () |
do_get_volume () |
do_guess_content_type (force_rescan, cancellable, callback, *user_data) |
do_guess_content_type_finish (result) |
do_guess_content_type_sync (force_rescan, cancellable) |
do_pre_unmount () |
do_remount (flags, mount_operation, cancellable, callback, *user_data) |
do_remount_finish (result) |
do_unmount (flags, cancellable, callback, *user_data) |
do_unmount_finish (result) |
do_unmount_with_operation (flags, mount_operation, cancellable, callback, *user_data) |
do_unmount_with_operation_finish (result) |
do_unmounted () |
Properties¶
None
Signals¶
Name | Short Description |
---|---|
changed | Emitted when the mount has been changed. |
pre-unmount | This signal may be emitted when the Gio.Mount is about to be unmounted. |
unmounted | This signal is emitted when the Gio.Mount have been unmounted. |
Fields¶
None
Class Details¶
class Gio.Mount¶
Bases:
Structure:
The GMount
interface represents a user-visible mount, such as a mounted file system.
GMount
is a ‘mounted’ filesystem that you can access. Mounted is in quotes because it’s not the same as a UNIX mount, it might be a GVFS mount, but you can still access the files on it if you use GIO.
A GMount
might be associated with a [iface`Gio`.Volume] (such as a USB flash drive) which hosts it.
Unmounting a GMount
instance is an asynchronous operation. For more information about asynchronous operations, see [iface`Gio`.AsyncResult] and [class`Gio`.Task]. To unmount a GMount
instance, first call [method`Gio`.Mount.unmount_with_operation] with (at least) the GMount
instance and a [type`Gio`.AsyncReadyCallback]. The callback will be fired when the operation has resolved (either with success or failure), and a [iface`Gio`.AsyncResult] structure will be passed to the callback. That callback should then call [method`Gio`.Mount.unmount_with_operation_finish] with the GMount
and the [iface`Gio`.AsyncResult] data to see if the operation was completed successfully. If an error
is present when [method`Gio`.Mount.unmount_with_operation_finish] is called, then it will be filled with any error information.
Note, when porting from GnomeVFS, GMount
is the moral equivalent of GnomeVFSVolume
.
Returns:
True if the self can be ejected.
Return type:
Checks if self can be ejected.
Returns:
True if the self can be unmounted.
Return type:
Checks if self can be unmounted.
eject(flags, cancellable, callback, *user_data)[source]¶
Parameters:
- flags (Gio.MountUnmountFlags) – flags affecting the unmount if required for eject
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore.
- callback (Gio.AsyncReadyCallback or None) – a Gio.AsyncReadyCallback, or None.
- user_data (object or None) – user data passed to callback.
Ejects a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.eject_finish() with the selfand Gio.AsyncResult data returned in the callback.
Deprecated since version 2.22: Use Gio.Mount.eject_with_operation() instead.
Parameters:
result (Gio.AsyncResult) – a Gio.AsyncResult.
Raises:
Returns:
True if the mount was successfully ejected. False otherwise.
Return type:
Finishes ejecting a mount. If any errors occurred during the operation,error will be set to contain the errors and False will be returned.
Deprecated since version 2.22: Use Gio.Mount.eject_with_operation_finish() instead.
eject_with_operation(flags, mount_operation, cancellable, callback, *user_data)[source]¶
Parameters:
- flags (Gio.MountUnmountFlags) – flags affecting the unmount if required for eject
- mount_operation (Gio.MountOperation or None) – a Gio.MountOperation or None to avoid user interaction.
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore.
- callback (Gio.AsyncReadyCallback or None) – a Gio.AsyncReadyCallback, or None.
- user_data (object or None) – user data passed to callback.
Ejects a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.eject_with_operation_finish() with the selfand Gio.AsyncResult data returned in the callback.
New in version 2.22.
eject_with_operation_finish(result)[source]¶
Parameters:
result (Gio.AsyncResult) – a Gio.AsyncResult.
Raises:
Returns:
True if the mount was successfully ejected. False otherwise.
Return type:
Finishes ejecting a mount. If any errors occurred during the operation,error will be set to contain the errors and False will be returned.
New in version 2.22.
get_default_location()[source]¶
Returns:
a Gio.File. The returned object should be unreffed withGObject.Object.unref() when no longer needed.
Return type:
Gets the default location of self. The default location of the givenself is a path that reflects the main entry point for the user (e.g. the home directory, or the root of the volume).
Returns:
a Gio.Drive or None if self is not associated with a volume or a drive. The returned object should be unreffed withGObject.Object.unref() when no longer needed.
Return type:
Gets the drive for the self.
This is a convenience method for getting the Gio.Volume and then using that object to get the Gio.Drive.
Returns:
a Gio.Icon. The returned object should be unreffed withGObject.Object.unref() when no longer needed.
Return type:
Gets the icon for self.
Returns:
the name for the given self. The returned string should be freed with GLib.free() when no longer needed.
Return type:
Gets the name of self.
Returns:
a Gio.File. The returned object should be unreffed withGObject.Object.unref() when no longer needed.
Return type:
Gets the root directory on self.
Returns:
Sorting key for self or None if no such key is available.
Return type:
Gets the sort key for self, if any.
New in version 2.32.
Returns:
a Gio.Icon. The returned object should be unreffed withGObject.Object.unref() when no longer needed.
Return type:
Gets the symbolic icon for self.
New in version 2.34.
Returns:
the UUID for self or None if no UUID can be computed. The returned string should be freed with GLib.free() when no longer needed.
Return type:
Gets the UUID for the self. The reference is typically based on the file system UUID for the mount in question and should be considered an opaque string. Returns None if there is no UUID available.
Returns:
a Gio.Volume or None if self is not associated with a volume. The returned object should be unreffed withGObject.Object.unref() when no longer needed.
Return type:
Gio.Volume or None
Gets the volume for the self.
guess_content_type(force_rescan, cancellable, callback, *user_data)[source]¶
Parameters:
- force_rescan (bool) – Whether to force a rescan of the content. Otherwise a cached result will be used if available
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore
- callback (Gio.AsyncReadyCallback or None) – a Gio.AsyncReadyCallback
- user_data (object or None) – user data passed to callback
Tries to guess the type of content stored on self. Returns one or more textual identifiers of well-known content types (typically prefixed with “x-content/”), e.g. x-content/image-dcf for camera memory cards. See theshared-mime-infospecification for more on x-content types.
This is an asynchronous operation (seeGio.Mount.guess_content_type_sync() for the synchronous version), and is finished by calling Gio.Mount.guess_content_type_finish() with theself and Gio.AsyncResult data returned in the callback.
New in version 2.18.
guess_content_type_finish(result)[source]¶
Parameters:
result (Gio.AsyncResult) – a Gio.AsyncResult
Raises:
Returns:
a None-terminated array of content types or None on error. Caller should free this array with GLib.strfreev() when done with it.
Return type:
[str]
Finishes guessing content types of self. If any errors occurred during the operation, error will be set to contain the errors andFalse will be returned. In particular, you may get anGio.IOErrorEnum.NOT_SUPPORTED if the mount does not support content guessing.
New in version 2.18.
guess_content_type_sync(force_rescan, cancellable)[source]¶
Parameters:
- force_rescan (bool) – Whether to force a rescan of the content. Otherwise a cached result will be used if available
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore
Raises:
Returns:
a None-terminated array of content types or None on error. Caller should free this array with GLib.strfreev() when done with it.
Return type:
[str]
Tries to guess the type of content stored on self. Returns one or more textual identifiers of well-known content types (typically prefixed with “x-content/”), e.g. x-content/image-dcf for camera memory cards. See theshared-mime-infospecification for more on x-content types.
This is a synchronous operation and as such may block doing IO; see Gio.Mount.guess_content_type() for the asynchronous version.
New in version 2.18.
Returns:
True if self is shadowed.
Return type:
Determines if self is shadowed. Applications or libraries should avoid displaying self in the user interface if it is shadowed.
A mount is said to be shadowed if there exists one or more user visible objects (currently Gio.Mount objects) with a root that is inside the root of self.
One application of shadow mounts is when exposing a single file system that is used to address several logical volumes. In this situation, a Gio.VolumeMonitor implementation would create twoGio.Volume objects (for example, one for the camera functionality of the device and one for a SD card reader on the device) with activation URIs gphoto2://[usb:001,002]/store1/
and gphoto2://[usb:001,002]/store2/
. When the underlying mount (with rootgphoto2://[usb:001,002]/
) is mounted, saidGio.VolumeMonitor implementation would create two Gio.Mount objects (each with their root matching the corresponding volume activation root) that would shadow the original mount.
The proxy monitor in Gio.Vfs 2.26 and later, automatically creates and manage shadow mounts (and shadows the underlying mount) if the activation root on a Gio.Volume is set.
New in version 2.20.
remount(flags, mount_operation, cancellable, callback, *user_data)[source]¶
Parameters:
- flags (Gio.MountMountFlags) – flags affecting the operation
- mount_operation (Gio.MountOperation or None) – a Gio.MountOperation or None to avoid user interaction.
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore.
- callback (Gio.AsyncReadyCallback or None) – a Gio.AsyncReadyCallback, or None.
- user_data (object or None) – user data passed to callback.
Remounts a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.remount_finish() with the selfand Gio.AsyncResults data returned in the callback.
Remounting is useful when some setting affecting the operation of the volume has been changed, as these may need a remount to take affect. While this is semantically equivalent with unmounting and then remounting not all backends might need to actually be unmounted.
remount_finish(result)[source]¶
Parameters:
result (Gio.AsyncResult) – a Gio.AsyncResult.
Raises:
Returns:
True if the mount was successfully remounted. False otherwise.
Return type:
Finishes remounting a mount. If any errors occurred during the operation,error will be set to contain the errors and False will be returned.
Increments the shadow count on self. Usually used byGio.VolumeMonitor implementations when creating a shadow mount forself, see Gio.Mount.is_shadowed() for more information. The caller will need to emit the Gio.Mount ::changed signal on self manually.
New in version 2.20.
unmount(flags, cancellable, callback, *user_data)[source]¶
Parameters:
- flags (Gio.MountUnmountFlags) – flags affecting the operation
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore.
- callback (Gio.AsyncReadyCallback or None) – a Gio.AsyncReadyCallback, or None.
- user_data (object or None) – user data passed to callback.
Unmounts a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.unmount_finish() with the selfand Gio.AsyncResult data returned in the callback.
Deprecated since version 2.22: Use Gio.Mount.unmount_with_operation() instead.
unmount_finish(result)[source]¶
Parameters:
result (Gio.AsyncResult) – a Gio.AsyncResult.
Raises:
Returns:
True if the mount was successfully unmounted. False otherwise.
Return type:
Finishes unmounting a mount. If any errors occurred during the operation,error will be set to contain the errors and False will be returned.
Deprecated since version 2.22: Use Gio.Mount.unmount_with_operation_finish() instead.
unmount_with_operation(flags, mount_operation, cancellable, callback, *user_data)[source]¶
Parameters:
- flags (Gio.MountUnmountFlags) – flags affecting the operation
- mount_operation (Gio.MountOperation or None) – a Gio.MountOperation or None to avoid user interaction.
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore.
- callback (Gio.AsyncReadyCallback or None) – a Gio.AsyncReadyCallback, or None.
- user_data (object or None) – user data passed to callback.
Unmounts a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.unmount_with_operation_finish() with the selfand Gio.AsyncResult data returned in the callback.
New in version 2.22.
unmount_with_operation_finish(result)[source]¶
Parameters:
result (Gio.AsyncResult) – a Gio.AsyncResult.
Raises:
Returns:
True if the mount was successfully unmounted. False otherwise.
Return type:
Finishes unmounting a mount. If any errors occurred during the operation,error will be set to contain the errors and False will be returned.
New in version 2.22.
Decrements the shadow count on self. Usually used byGio.VolumeMonitor implementations when destroying a shadow mount forself, see Gio.Mount.is_shadowed() for more information. The caller will need to emit the Gio.Mount ::changed signal on self manually.
New in version 2.20.
do_can_eject() virtual¶
Returns:
True if the mount can be ejected.
Return type:
Checks if mount can be ejected.
do_can_unmount() virtual¶
Returns:
True if the mount can be unmounted.
Return type:
Checks if mount can be unmounted.
do_changed() virtual¶
Changed signal that is emitted when the mount’s state has changed.
do_eject(flags, cancellable, callback, *user_data) virtual¶
Parameters:
- flags (Gio.MountUnmountFlags) – flags affecting the unmount if required for eject
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore.
- callback (Gio.AsyncReadyCallback or None) – a Gio.AsyncReadyCallback, or None.
- user_data (object or None) – user data passed to callback.
Ejects a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.eject_finish() with the mountand Gio.AsyncResult data returned in the callback.
Deprecated since version 2.22: Use Gio.Mount.eject_with_operation() instead.
do_eject_finish(result) virtual¶
Parameters:
result (Gio.AsyncResult) – a Gio.AsyncResult.
Returns:
True if the mount was successfully ejected. False otherwise.
Return type:
Finishes ejecting a mount. If any errors occurred during the operation,error will be set to contain the errors and False will be returned.
Deprecated since version 2.22: Use Gio.Mount.eject_with_operation_finish() instead.
do_eject_with_operation(flags, mount_operation, cancellable, callback, *user_data) virtual¶
Parameters:
- flags (Gio.MountUnmountFlags) – flags affecting the unmount if required for eject
- mount_operation (Gio.MountOperation or None) – a Gio.MountOperation or None to avoid user interaction.
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore.
- callback (Gio.AsyncReadyCallback or None) – a Gio.AsyncReadyCallback, or None.
- user_data (object or None) – user data passed to callback.
Ejects a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.eject_with_operation_finish() with the mountand Gio.AsyncResult data returned in the callback.
New in version 2.22.
do_eject_with_operation_finish(result) virtual¶
Parameters:
result (Gio.AsyncResult) – a Gio.AsyncResult.
Returns:
True if the mount was successfully ejected. False otherwise.
Return type:
Finishes ejecting a mount. If any errors occurred during the operation,error will be set to contain the errors and False will be returned.
New in version 2.22.
do_get_default_location() virtual¶
Returns:
a Gio.File. The returned object should be unreffed withGObject.Object.unref() when no longer needed.
Return type:
Gets the default location of mount. The default location of the givenmount is a path that reflects the main entry point for the user (e.g. the home directory, or the root of the volume).
do_get_drive() virtual¶
Returns:
a Gio.Drive or None if mount is not associated with a volume or a drive. The returned object should be unreffed withGObject.Object.unref() when no longer needed.
Return type:
Gets the drive for the mount.
This is a convenience method for getting the Gio.Volume and then using that object to get the Gio.Drive.
do_get_icon() virtual¶
Returns:
a Gio.Icon. The returned object should be unreffed withGObject.Object.unref() when no longer needed.
Return type:
Gets the icon for mount.
do_get_name() virtual¶
Returns:
the name for the given mount. The returned string should be freed with GLib.free() when no longer needed.
Return type:
Gets the name of mount.
do_get_root() virtual¶
Returns:
a Gio.File. The returned object should be unreffed withGObject.Object.unref() when no longer needed.
Return type:
Gets the root directory on mount.
do_get_sort_key() virtual¶
Returns:
Sorting key for mount or None if no such key is available.
Return type:
Gets the sort key for mount, if any.
New in version 2.32.
do_get_symbolic_icon() virtual¶
Returns:
a Gio.Icon. The returned object should be unreffed withGObject.Object.unref() when no longer needed.
Return type:
Gets the symbolic icon for mount.
New in version 2.34.
do_get_uuid() virtual¶
Returns:
the UUID for mount or None if no UUID can be computed. The returned string should be freed with GLib.free() when no longer needed.
Return type:
Gets the UUID for the mount. The reference is typically based on the file system UUID for the mount in question and should be considered an opaque string. Returns None if there is no UUID available.
do_get_volume() virtual¶
Returns:
a Gio.Volume or None if mount is not associated with a volume. The returned object should be unreffed withGObject.Object.unref() when no longer needed.
Return type:
Gio.Volume or None
Gets the volume for the mount.
do_guess_content_type(force_rescan, cancellable, callback, *user_data) virtual¶
Parameters:
- force_rescan (bool) – Whether to force a rescan of the content. Otherwise a cached result will be used if available
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore
- callback (Gio.AsyncReadyCallback or None) – a Gio.AsyncReadyCallback
- user_data (object or None) – user data passed to callback
Tries to guess the type of content stored on mount. Returns one or more textual identifiers of well-known content types (typically prefixed with “x-content/”), e.g. x-content/image-dcf for camera memory cards. See theshared-mime-infospecification for more on x-content types.
This is an asynchronous operation (seeGio.Mount.guess_content_type_sync() for the synchronous version), and is finished by calling Gio.Mount.guess_content_type_finish() with themount and Gio.AsyncResult data returned in the callback.
New in version 2.18.
do_guess_content_type_finish(result) virtual¶
Parameters:
result (Gio.AsyncResult) – a Gio.AsyncResult
Returns:
a None-terminated array of content types or None on error. Caller should free this array with GLib.strfreev() when done with it.
Return type:
[str]
Finishes guessing content types of mount. If any errors occurred during the operation, error will be set to contain the errors andFalse will be returned. In particular, you may get anGio.IOErrorEnum.NOT_SUPPORTED if the mount does not support content guessing.
New in version 2.18.
do_guess_content_type_sync(force_rescan, cancellable) virtual¶
Parameters:
- force_rescan (bool) – Whether to force a rescan of the content. Otherwise a cached result will be used if available
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore
Returns:
a None-terminated array of content types or None on error. Caller should free this array with GLib.strfreev() when done with it.
Return type:
[str]
Tries to guess the type of content stored on mount. Returns one or more textual identifiers of well-known content types (typically prefixed with “x-content/”), e.g. x-content/image-dcf for camera memory cards. See theshared-mime-infospecification for more on x-content types.
This is a synchronous operation and as such may block doing IO; see Gio.Mount.guess_content_type() for the asynchronous version.
New in version 2.18.
do_pre_unmount() virtual¶
The ::pre-unmount signal that is emitted when the Gio.Mount will soon be emitted. If the recipient is somehow holding the mount open by keeping an open file on it it should close the file.
do_remount(flags, mount_operation, cancellable, callback, *user_data) virtual¶
Parameters:
- flags (Gio.MountMountFlags) – flags affecting the operation
- mount_operation (Gio.MountOperation or None) – a Gio.MountOperation or None to avoid user interaction.
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore.
- callback (Gio.AsyncReadyCallback or None) – a Gio.AsyncReadyCallback, or None.
- user_data (object or None) – user data passed to callback.
Remounts a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.remount_finish() with the mountand Gio.AsyncResults data returned in the callback.
Remounting is useful when some setting affecting the operation of the volume has been changed, as these may need a remount to take affect. While this is semantically equivalent with unmounting and then remounting not all backends might need to actually be unmounted.
do_remount_finish(result) virtual¶
Parameters:
result (Gio.AsyncResult) – a Gio.AsyncResult.
Returns:
True if the mount was successfully remounted. False otherwise.
Return type:
Finishes remounting a mount. If any errors occurred during the operation,error will be set to contain the errors and False will be returned.
do_unmount(flags, cancellable, callback, *user_data) virtual¶
Parameters:
- flags (Gio.MountUnmountFlags) – flags affecting the operation
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore.
- callback (Gio.AsyncReadyCallback or None) – a Gio.AsyncReadyCallback, or None.
- user_data (object or None) – user data passed to callback.
Unmounts a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.unmount_finish() with the mountand Gio.AsyncResult data returned in the callback.
Deprecated since version 2.22: Use Gio.Mount.unmount_with_operation() instead.
do_unmount_finish(result) virtual¶
Parameters:
result (Gio.AsyncResult) – a Gio.AsyncResult.
Returns:
True if the mount was successfully unmounted. False otherwise.
Return type:
Finishes unmounting a mount. If any errors occurred during the operation,error will be set to contain the errors and False will be returned.
Deprecated since version 2.22: Use Gio.Mount.unmount_with_operation_finish() instead.
do_unmount_with_operation(flags, mount_operation, cancellable, callback, *user_data) virtual¶
Parameters:
- flags (Gio.MountUnmountFlags) – flags affecting the operation
- mount_operation (Gio.MountOperation or None) – a Gio.MountOperation or None to avoid user interaction.
- cancellable (Gio.Cancellable or None) – optional Gio.Cancellable object, None to ignore.
- callback (Gio.AsyncReadyCallback or None) – a Gio.AsyncReadyCallback, or None.
- user_data (object or None) – user data passed to callback.
Unmounts a mount. This is an asynchronous operation, and is finished by calling Gio.Mount.unmount_with_operation_finish() with the mountand Gio.AsyncResult data returned in the callback.
New in version 2.22.
do_unmount_with_operation_finish(result) virtual¶
Parameters:
result (Gio.AsyncResult) – a Gio.AsyncResult.
Returns:
True if the mount was successfully unmounted. False otherwise.
Return type:
Finishes unmounting a mount. If any errors occurred during the operation,error will be set to contain the errors and False will be returned.
New in version 2.22.
do_unmounted() virtual¶
The unmounted signal that is emitted when the Gio.Mount have been unmounted. If the recipient is holding references to the object they should release them so the object can be finalized.
Signal Details¶
Gio.Mount.signals.changed(mount)¶
Signal Name:
changed
Flags:
Parameters:
mount (Gio.Mount) – The object which received the signal
Emitted when the mount has been changed.
Gio.Mount.signals.pre_unmount(mount)¶
Signal Name:
pre-unmount
Flags:
Parameters:
mount (Gio.Mount) – The object which received the signal
This signal may be emitted when the Gio.Mount is about to be unmounted.
This signal depends on the backend and is only emitted if GIO was used to unmount.
New in version 2.22.
Gio.Mount.signals.unmounted(mount)¶
Signal Name:
unmounted
Flags:
Parameters:
mount (Gio.Mount) – The object which received the signal
This signal is emitted when the Gio.Mount have been unmounted. If the recipient is holding references to the object they should release them so the object can be finalized.