#
Prev |  | Next

# mime

## Name

mime -- Retrieve information about files based on their MIME type.

## Synopsis

mime [`subcommand`] [`-option` `value`...]

## Description

The mime command retrieves information about files based on their MIME type.

## Subcommands

mime getApplicationInfo [application-ID] [`-option`]

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

    type: string

    Return whether the application can open multiple files.

  -command

    type: string

    Return the string to start the application.

  -expectURIs

    type: string

    Return whether the application expects URIs instead of normal path names.

  -name

    type: string

    Return the name of the application.

  -requiresTerminal

    type: string

    Return whether the application requires a terminal.

  -URISchemes

    type: string

    Return a list of supported URI schemes.

mime getApplicationList [mime-type] [`-option` `value`...]

  Return a list of IDs of applications, which are able to handle this MIME type.

  Options

  -all

    type: boolean (default: false)

    Return all applications instead of the preferred ones.

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

    type: string

    Return whether this MIME type can be executable.

  -defaultAction

    type: string

    Return "Application", "Component" or "None" depending on the default action for this MIME type.

  -defaultApplication

    type: string

    Return the application ID of the default application.

  -description

    type: string

    Return a description of this MIME type.

  -icon

    type: string

    Return the default icon of this MIME type.

mime launch [application-ID] [URI-list]

  Launch the given application with the files given in the URI-list.

Prev | Home | Next
file | Up | appletFactory