Retrieve information about files based on their MIME type.
Synopsis
gnocl::mime [subcommand] [-option value...]
Description
The mime command retrieves information about files based on their MIME type.
Subcommands
- gnocl::mime getApplicationInfo [application-ID] [-option]
- gnocl::mime getApplicationInfo [application-ID] [-option value...]
- In its first form the command returns information about the application with this ID. The option determine which information are retrieved.
- In its second form the value of a given option must be the name of a global variable in which the corresponding information is stored. In this case the empty string is returned.
- Examples:
getApplicationInfo gimp-2.0 -canOpenMultipleFiles
-
returns whether the gimp-2.0 can open multiple files.
-
getApplicationInfo gimp-2.0 \ -canOpenMultipleFiles multiFiles \ -requiresTerminal terminal
- returns the empty string. The value of the global variable
multiFiles is a boolean whether gimp-2.0 can open multiple files and the value of the variable terminal is a boolean whether it requires a terminal.
-
Options
-
-canOpenMultipleFiles string
-
Return whether the application can open multiple files
-
-command string
-
Return the string to start the application.
-
-expectURIs string
-
Return whether the application expects URIs instead of normal path names.
-
-name string
-
Return the name of the application.
-
-requiresTerminal string
-
Return whether the application requires a terminal.
-
-URISchemes string
- Return a list of supported URI schemes.
- gnocl::mime getApplicationList [mime-type] [-option value...]
- Return a list of IDs of applications, which are able to handle this MIME type.
-
Options
-
-all boolean (default: false)
- Return all applications instead of the preferred ones.
- gnocl::mime getMimeInfo [mime-type] [-option value...]
- Return information about a MIME type. Options determine which information are retrieved. See getApplicationInfo for a detailed explanation.
-
Options
-
-canBeExecutable string
-
Return whether this MIME type can be executable.
-
-defaultAction string
-
Return "Application", "Component" or "None" depending on the default action for this MIME type.
-
-defaultApplication string
-
Return the application ID of the default application.
-
-description string
-
Return a description of this MIME type.
-
-icon string
- Return the default icon of this MIME type.
- gnocl::mime launch [application-ID] [URI-list]
-
Launch the given application with the files given in the URI-list. |