MountOperation
GMountOperation
provides a mechanism for interacting with the user. It can be used for authenticating mountable operations, such as loop mounting files, hard drive partitions or server locations. It can also be used to ask the user questions or show a list of applications preventing unmount or eject operations from completing.
Note that GMountOperation
is used for more than just iface@Gio.Mount objects – for example it is also used in method@Gio.Drive.start and method@Gio.Drive.stop.
Users should instantiate a subclass of this that implements all the various callbacks to show the required dialogs, such as GtkMountOperation
. If no user interaction is desired (for example when automounting filesystems at login time), usually NULL
can be passed, see each method taking a GMountOperation
for details.
Throughout the API, the term ‘TCRYPT’ is used to mean ‘compatible with TrueCrypt and VeraCrypt’. TrueCrypt is a discontinued system for encrypting file containers, partitions or whole disks, typically used with Windows. VeraCrypt is a maintained fork of TrueCrypt with various improvements and auditing fixes.
Skipped during bindings generation
signal
show-processes
: Unsupported parameterprocesses
: GLib.Pid
Constructors
Properties
Whether the device to be unlocked is a TCRYPT hidden volume. See the VeraCrypt documentation.
Whether the device to be unlocked is a TCRYPT system volume. In this context, a system volume is a volume with a bootloader and operating system installed. This is only supported for Windows operating systems. For further documentation, see the VeraCrypt documentation.
Determines if and how the password information should be saved.
The VeraCrypt PIM value, when unlocking a VeraCrypt volume. See the VeraCrypt documentation.
Functions
Emitted by the backend when e.g. a device becomes unavailable while a mount operation is in progress.
Emitted when a mount operation asks the user for a password.
Emitted when asking the user a question and gives a list of choices for the user to choose from.
Emitted when the user has replied to the mount operation.
Emitted when an unmount operation has been busy for more than some time (typically 1.5 seconds).
Check to see whether the mount operation is being used for an anonymous user.
Check to see whether the mount operation is being used for a TCRYPT hidden volume.
Check to see whether the mount operation is being used for a TCRYPT system volume.
Gets a password from the mount operation.
Gets the state of saving passwords for the mount operation.
Get the user name from the mount operation.
Emits the #GMountOperation::reply signal.
Sets the mount operation to use an anonymous user if @anonymous is true.
Sets the mount operation to use a hidden volume if @hidden_volume is true.
Sets the mount operation to use a system volume if @system_volume is true.
Sets the mount operation's password to @password.
Sets the state of saving passwords for the mount operation.
Sets the user name within @op to @username.