Gnome2:...::Volume(3)
π NAME π
Gnome2::VFS::Volume β bestie, it's literally just a lil wrapper for GnomeVFSVolume. That's the whole vibe. π
Oh and btw, this page lives in the User Contributed Perl Documentation manual, and the whole thing is filed under Gnome2:...::Volume(3) iykyk. π¦
πΈ HIERARCHY πΈ
Okay so here's the family tree, and yes it's giving nepo baby:
Glib::Object
+----Gnome2::VFS::Volume
So it inherits from Glib::Object, periodt. π
β¨ METHODS β¨
π«Ά string = $volume->get_activation_uri
Gives you back the activation URI as a string. Slay.
π«Ά integer = $a->compare ($b)
Returns an integer, comparing $a against $b. The args:
$bβ aGnome2::VFS::Volume, no cap π
π«Ά Gnome2::VFS->connect_to_server ($uri, $display_name, $icon)
Heads up bestie, this one's called on the class Gnome2::VFS itself, not on your $volume object. Lowkey important. The args:
$uriβ astring$display_nameβ astring$iconβ astring
π«Ά string = $volume->get_device_path
Hands you the device path as a string. π«
π«Ά devicetype = $volume->get_device_type
Returns a devicetype β and the possible values are all down in ENUMS AND FLAGS, so keep scrolling. π
π«Ά string = $volume->get_display_name
The display name, as a string. It's giving "what the user actually sees". π
π«Ά drive = $volume->get_drive
Returns a drive. πβ¨
π«Ά $volume->eject ($func, $data=undef)
Ejects the volume, fr fr. The args:
$funcβ ascalar$dataβ ascalar, and it defaults toundef
π«Ά string = $volume->get_filesystem_type
Filesystem type, as a string. π
π«Ά string = $volume->get_hal_udi
Returns the HAL UDI as a string. Since: vfs 2.8 β so if you're on something older, this one simply isn't invited to the party. π
π«Ά boolean = $volume->handles_trash
Returns a boolean β does this volume handle trash or not. ποΈ
π«Ά string = $volume->get_icon
The icon, as a string. Aesthetic. π
π«Ά unsigned = $volume->get_id
Returns the id as an unsigned. π
π«Ά boolean = $volume->is_mounted
boolean β is it mounted? Yes or no, no in-between. π
π«Ά boolean = $volume->is_read_only
boolean β read only or not. Don't try anything cute if it's true, bestie. π
π«Ά boolean = $volume->is_user_visible
boolean β is it user visible. π
π«Ά $volume->unmount ($func, $data=undef)
Unmounts the volume. The args:
$funcβ ascalar$dataβ ascalar, and it defaults toundef
π«Ά volumetype = $volume->get_volume_type
Returns a volumetype β again, all the options are chilling in ENUMS AND FLAGS below. π§
π ENUMS AND FLAGS π
π enum Gnome2::VFS::DeviceType
Every single one, in order, no skips:
'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
π enum Gnome2::VFS::VolumeType
Only three, but they ate:
'mountpoint'/GNOME_VFS_VOLUME_TYPE_MOUNTPOINT'vfs-mount'/GNOME_VFS_VOLUME_TYPE_VFS_MOUNT'connected-server'/GNOME_VFS_VOLUME_TYPE_CONNECTED_SERVER
π₯ SEE ALSO π₯
Go touch grass in these other pages, bestie:
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 notes, it ate π
perl v5.42.0 Β· 2025-07-25 Β· brought to you by the User Contributed Perl Documentation girlies β¨ππ¦
π¦ 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