Gio.VolumeMonitor::mount-pre-unmount

connect('mount-pre-unmount', function (volumeMonitor, mount: Gio.Mount, ): void);
  

Emitted when a mount is about to be removed.

volumeMonitor

instance of Gio.VolumeMonitor that is emitting the signal

mount

a Gio.Mount that is being unmounted.