Gnome2::VFS::Drive(3)
β¨ Gnome2::VFS::Drive β¨
okay bestie, welcome to Gnome2::VFS::Drive π this is the Perl wrapper for GnomeVFSDrive, and yeah it's one of those User Contributed Perl Documentation pages, we love her for it π
basically a Drive is the physical-ish thing your volumes live on, and this class is your lil group chat with it. let's go π¦
πΈ HIERARCHY πΈ
she's got ancestors, periodt:
Glib::Object
+----Gnome2::VFS::Drive
π METHODS π
okay so here's every single method, no skips, no cuts, we're eating the whole plate π
string = $drive->get_activation_uriβ hands you the activation URI as a string β¨integer = $a->compare ($b)β compares two drives, gives you back an integer π«$b(Gnome2::VFS::Drive)
string = $drive->get_device_pathβ the device path, as a string πdevicetype = $drive->get_device_typeβ returns the device type (it's an enum, keep scrolling for the full menu π)string = $drive->get_display_nameβ the pretty name you'd actually show a human π$drive->eject ($func, $data=undef)β eject that drive, gorl π$func(scalar)$data(scalar)
string = $drive->get_hal_udiβ the HAL UDI, as a string π§- Since: vfs 2.8
string = $drive->get_iconβ icon, as a string πunsigned = $drive->get_idβ an unsigned id number βboolean = $drive->is_connectedβ is it connected? true/false fr frboolean = $drive->is_mountedβ is it mounted? πboolean = $drive->is_user_visibleβ should the user see it? π$drive->mount ($func, $data=undef)β mount it up π₯$func(scalar)$data(scalar)
list = $drive->get_mounted_volumesβ gives you back a list of the mounted volumes π«Ά- Since: vfs 2.8
boolean = $drive->needs_ejectβ does it need ejecting? true/false π- Since: vfs 2.16
$drive->unmount ($func, $data=undef)β unmount, bye bestie π$func(scalar)$data(scalar)
π SIGNALS π
she emits these, keep an ear out:
volume-mounted(Gnome2::VFS::Drive,Gnome2::VFS::Volume)volume-pre-unmount(Gnome2::VFS::Drive,Gnome2::VFS::Volume)volume-unmounted(Gnome2::VFS::Drive,Gnome2::VFS::Volume)
π ENUMS AND FLAGS π
π enum Gnome2::VFS::DeviceType π
all the device type values, each one with her short name and her full constant name β use whichever slays:
'unknown'/'GNOME_VFS_DEVICE_TYPE_UNKNOWN''audio-cd'/'GNOME_VFS_DEVICE_TYPE_AUDIO_CD''video-dvd'/'GNOME_VFS_DEVICE_TYPE_VIDEO_DVD''harddrive'/'GNOME_VFS_DEVICE_TYPE_HARDDRIVE''cdrom'/'GNOME_VFS_DEVICE_TYPE_CDROM''floppy'/'GNOME_VFS_DEVICE_TYPE_FLOPPY''zip'/'GNOME_VFS_DEVICE_TYPE_ZIP''jaz'/'GNOME_VFS_DEVICE_TYPE_JAZ''nfs'/'GNOME_VFS_DEVICE_TYPE_NFS''autofs'/'GNOME_VFS_DEVICE_TYPE_AUTOFS''camera'/'GNOME_VFS_DEVICE_TYPE_CAMERA''memory-stick'/'GNOME_VFS_DEVICE_TYPE_MEMORY_STICK''smb'/'GNOME_VFS_DEVICE_TYPE_SMB''apple'/'GNOME_VFS_DEVICE_TYPE_APPLE''music-player'/'GNOME_VFS_DEVICE_TYPE_MUSIC_PLAYER''windows'/'GNOME_VFS_DEVICE_TYPE_WINDOWS''loopback'/'GNOME_VFS_DEVICE_TYPE_LOOPBACK''network'/'GNOME_VFS_DEVICE_TYPE_NETWORK'
π¦ SEE ALSO π¦
go read these next, iykyk:
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.
and that's the whole page bestie, no cap π
this was perl v5.42.0, dated 2025-07-25, and you just read Gnome2::VFS::Drive(3) β iconic of you, honestly π«Άβ¨
π¦ 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