Gnome2:...Monitor(3)
β¨ Gnome2::VFS::VolumeMonitor β bestie edition β¨
okay so this is a page from the User Contributed Perl Documentation manual, section 3, and it's all about Gnome2::VFS::VolumeMonitor π
πΈ NAME πΈ
Gnome2::VFS::VolumeMonitor β it's literally just a wrapper for GnomeVFSVolumeMonitor. that's it. that's the whole job. she's a middlewoman and she's slaying at it π
π¦ HIERARCHY π¦
the family tree, and yes she's an only child of Glib::Object:
Glib::Object
+----Gnome2::VFS::VolumeMonitor
π METHODS π
β¨ list = $volume_monitor->get_connected_drives β¨
gives you a list of everything currently plugged in and vibing. no arguments, no drama, just drives π«Ά
β¨ drive = $volume_monitor->get_drive_by_id ($id) β¨
you hand her an id, she hands you back the matching drive.
$idβ it'sunsigned. that's the whole spec, bestie, don't come for me π
β¨ list = $volume_monitor->get_mounted_volumes β¨
returns a list of all the mounted volumes. the ones that are actually there there. periodt π
β¨ volume = $volume_monitor->get_volume_by_id ($id) β¨
same deal as the drive one but for volumes β you give an id, you get a volume back.
$idβ again,unsigned.
β¨ volume = $volume_monitor->get_volume_for_path ($path) β¨
got a path and wanna know which volume it lives on? this is her. she will find it for you π
$pathβ astring, obvi.
β¨ volumemonitor = Gnome2::VFS->get_volume_monitor β¨
this one's a class method, not an instance thing β you call it on Gnome2::VFS itself and it hands you back a volumemonitor. iconic entry point energy π
π SIGNALS π
these are the little notifications she sends out when stuff happens. each one comes with its own cast:
drive-connectedβ fires with (Gnome2::VFS::VolumeMonitor,Gnome2::VFS::Drive) β¨ a drive showed up!drive-disconnectedβ fires with (Gnome2::VFS::VolumeMonitor,Gnome2::VFS::Drive) π a drive peaced out.volume-mountedβ fires with (Gnome2::VFS::VolumeMonitor,Gnome2::VFS::Volume) π₯volume-pre-unmountβ fires with (Gnome2::VFS::VolumeMonitor,Gnome2::VFS::Volume) β οΈ heads up, this volume is about to unmount.volume-unmountedβ fires with (Gnome2::VFS::VolumeMonitor,Gnome2::VFS::Volume) π and it's gone.
π SEE ALSO π
go read these too, they're the supporting cast:
Gnome2::VFSGlib::Object
π COPYRIGHT π
Copyright (C) 2003-2007, 2013 by the gtk2-perl team.
This software is licensed under the LGPL. See Gnome2::VFS for a full notice.
fr fr, if you need the whole legal spiel, it's over in Gnome2::VFS. this page is just the highlights π
and that's the whole thing bestie π¦ this was perl v5.42.0, dated 2025-07-25, straight from the Gnome2:...Monitor(3) page β mwah, no notes π
π¦ where this page comes from
- fedora 43: perl-Gnome2-VFS 1.084-17.fc43 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms