Gnome2:...me::Type(3)
π Gnome2::VFS::Mime::Type π
okay bestie, welcome to the Gnome2:...me::Type(3) page β yes that's the whole manual name, it got squished, it's giving mysterious. This is part of the User Contributed Perl Documentation and it's literally the whole rundown on mime types in Gnome2::VFS. grab a boba, we're doing this. π§β¨
πΈ NAME πΈ
Gnome2::VFS::Mime::Type β the class that handles mime types, no cap π
π METHODS π
scalar = Gnome2::VFS::Mime::Type->new ($mime_type)
the constructor, the origin story, the main character entrance π
$mime_type(string)
result = $mime_type->add_application_to_short_list ($application_id)
adds an app to the short list, like adding someone to the close friends story π«Ά
$application_id(string)
result = $mime_type->add_extension ($extension)
gives your mime type another extension to flex with π¦
$extension(string)
list = $mime_type->get_all_applications_for_uri ($uri)
every app that can handle this uri. the whole roster.
$uri(string)
Since: vfs 2.10
list = $mime_type->get_all_applications
Returns a list of GnomeVFSMimeApplication's.
list = $mime_type->get_all_desktop_entries
all the desktop entries, periodt.
Since: vfs 2.8
boolean = $mime_type->can_be_executable / result = $mime_type->set_can_be_executable ($new_value)
get or set whether this thing can be executable. it's a whole vibe check on the executable-ness.
$new_value(boolean)
mimeactiontype = $mime_type->get_default_action_type / result = $mime_type->set_default_action_type ($action_type)
reads or sets the default action type, iconic either way β¨
$action_type(Gnome2::VFS::MimeActionType)
application = $mime_type->get_default_application_for_uri ($uri)
the app that gets first dibs on this uri π₯
$uri(string)
Since: vfs 2.10
application = $mime_type->get_default_application / result = $mime_type->set_default_application ($application_id)
the default app, the one who always shows up first. get it or set it.
$application_id(string)
string = $mime_type->get_default_desktop_entry
the default desktop entry as a string.
Since: vfs 2.8
string = $mime_type->get_description / result = $mime_type->set_description ($description)
read or write the lil description, the bio if you will π
$description(string)
mimeequivalence = $mime_type->get_equivalence ($base_mime_type)
how related this mime type is to a base mime type. it's giving "are we siblings or strangers" π
$base_mime_type(Gnome2::VFS::Mime::Type)
Since: vfs 2.8
result = $mime_type->extend_all_applications (...)
throws a bunch of app ids at all applications at once. go off.
...(list) of application id's
string = $mime_type->get_icon / result = $mime_type->set_icon ($filename)
the icon!! get it or set it, this is the aesthetic of the whole mime type π
$filename(string)
boolean = $a->is_equal ($b)
compares two mime types. are they twins or not bestie π―
$b(Gnome2::VFS::Mime::Type)
Since: vfs 2.8
result = $mime_type->remove_application_from_short_list ($application_id)
removes an app from the short list. it's the unfollow, but make it mime π
$application_id(string)
result = $mime_type->remove_extension ($extension)
bye bye extension π
$extension(string)
result = $mime_type->remove_from_all_applications (...)
yeets a list of app ids out of all applications
...(list) of application id's
list = $mime_type->get_short_list_applications
Returns a list of GnomeVFSMimeApplication's. the inner circle π
result = $mime_type->set_short_list_applications (...)
sets the whole short list from a list of app ids, one fell swoop π
...(list) of application id's
π ENUMS AND FLAGS π
enum Gnome2::VFS::MimeActionType
'none'/'GNOME_VFS_MIME_ACTION_TYPE_NONE''application'/'GNOME_VFS_MIME_ACTION_TYPE_APPLICATION''component'/'GNOME_VFS_MIME_ACTION_TYPE_COMPONENT'
enum Gnome2::VFS::MimeEquivalence
'unrelated'/'GNOME_VFS_MIME_UNRELATED''identical'/'GNOME_VFS_MIME_IDENTICAL''parent'/'GNOME_VFS_MIME_PARENT'
enum Gnome2::VFS::Result
okay this one is LONG, it's the whole result-code alphabet, buckle up buttercup π«‘
'ok'/'GNOME_VFS_OK''error-not-found'/'GNOME_VFS_ERROR_NOT_FOUND''error-generic'/'GNOME_VFS_ERROR_GENERIC''error-internal'/'GNOME_VFS_ERROR_INTERNAL''error-bad-parameters'/'GNOME_VFS_ERROR_BAD_PARAMETERS''error-not-supported'/'GNOME_VFS_ERROR_NOT_SUPPORTED''error-io'/'GNOME_VFS_ERROR_IO''error-corrupted-data'/'GNOME_VFS_ERROR_CORRUPTED_DATA''error-wrong-format'/'GNOME_VFS_ERROR_WRONG_FORMAT''error-bad-file'/'GNOME_VFS_ERROR_BAD_FILE''error-too-big'/'GNOME_VFS_ERROR_TOO_BIG''error-no-space'/'GNOME_VFS_ERROR_NO_SPACE''error-read-only'/'GNOME_VFS_ERROR_READ_ONLY''error-invalid-uri'/'GNOME_VFS_ERROR_INVALID_URI''error-not-open'/'GNOME_VFS_ERROR_NOT_OPEN''error-invalid-open-mode'/'GNOME_VFS_ERROR_INVALID_OPEN_MODE''error-access-denied'/'GNOME_VFS_ERROR_ACCESS_DENIED''error-too-many-open-files'/'GNOME_VFS_ERROR_TOO_MANY_OPEN_FILES''error-eof'/'GNOME_VFS_ERROR_EOF''error-not-a-directory'/'GNOME_VFS_ERROR_NOT_A_DIRECTORY''error-in-progress'/'GNOME_VFS_ERROR_IN_PROGRESS''error-interrupted'/'GNOME_VFS_ERROR_INTERRUPTED''error-file-exists'/'GNOME_VFS_ERROR_FILE_EXISTS''error-loop'/'GNOME_VFS_ERROR_LOOP''error-not-permitted'/'GNOME_VFS_ERROR_NOT_PERMITTED''error-is-directory'/'GNOME_VFS_ERROR_IS_DIRECTORY''error-no-memory'/'GNOME_VFS_ERROR_NO_MEMORY''error-host-not-found'/'GNOME_VFS_ERROR_HOST_NOT_FOUND''error-invalid-host-name'/'GNOME_VFS_ERROR_INVALID_HOST_NAME''error-host-has-no-address'/'GNOME_VFS_ERROR_HOST_HAS_NO_ADDRESS''error-login-failed'/'GNOME_VFS_ERROR_LOGIN_FAILED''error-cancelled'/'GNOME_VFS_ERROR_CANCELLED''error-directory-busy'/'GNOME_VFS_ERROR_DIRECTORY_BUSY''error-directory-not-empty'/'GNOME_VFS_ERROR_DIRECTORY_NOT_EMPTY''error-too-many-links'/'GNOME_VFS_ERROR_TOO_MANY_LINKS''error-read-only-file-system'/'GNOME_VFS_ERROR_READ_ONLY_FILE_SYSTEM''error-not-same-file-system'/'GNOME_VFS_ERROR_NOT_SAME_FILE_SYSTEM''error-name-too-long'/'GNOME_VFS_ERROR_NAME_TOO_LONG''error-service-not-available'/'GNOME_VFS_ERROR_SERVICE_NOT_AVAILABLE''error-service-obsolete'/'GNOME_VFS_ERROR_SERVICE_OBSOLETE''error-protocol-error'/'GNOME_VFS_ERROR_PROTOCOL_ERROR''error-no-master-browser'/'GNOME_VFS_ERROR_NO_MASTER_BROWSER''error-no-default'/'GNOME_VFS_ERROR_NO_DEFAULT''error-no-handler'/'GNOME_VFS_ERROR_NO_HANDLER''error-parse'/'GNOME_VFS_ERROR_PARSE''error-launch'/'GNOME_VFS_ERROR_LAUNCH''error-timeout'/'GNOME_VFS_ERROR_TIMEOUT''error-nameserver'/'GNOME_VFS_ERROR_NAMESERVER''error-locked'/'GNOME_VFS_ERROR_LOCKED''error-deprecated-function'/'GNOME_VFS_ERROR_DEPRECATED_FUNCTION''error-invalid-filename'/'GNOME_VFS_ERROR_INVALID_FILENAME''error-not-a-symbolic-link'/'GNOME_VFS_ERROR_NOT_A_SYMBOLIC_LINK''num-errors'/'GNOME_VFS_NUM_ERRORS'
π¦ SEE ALSO π¦
Gnome2::VFSβ the parent, the blueprint, the moment π«Ά
π 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, you ate it, you understood the assignment πβ¨
perl v5.42.0 Β· 2025-07-25 β mwah, go forth and mime type responsibly π π
π¦ 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