Gnome2::VFS::Drive(3)

πŸ“¦
version 1.084 Β· 2 versions
, in fedora 43

✨ 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 fr
  • boolean = $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::VFS
  • Glib::Object

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