Class Method | get_default_application |
No summary |
Class Method | get_fallback_emailclient |
Undocumented |
Class Method | get_fallback_filebrowser |
Undocumented |
Class Method | get_fallback_webbrowser |
Undocumented |
Class Method | list_applications |
No summary |
Class Method | set_default_application |
No summary |
Static Method | create |
Create a new usercreated desktop entry which defines a custom command to handle a certain file type. |
Static Method | get_application |
No summary |
Class Method | _get_default_application |
Undocumented |
Static Method | _mimeapps_files |
Undocumented |
Class Variable | _defaults_app_cache |
Undocumented |
Parameters | |
klass | Undocumented |
mimetype | the mime-type of the file (e.g. "text/html") |
Returns | |
an Application object or None |
Parameters | |
klass | Undocumented |
mimetype | the mime-type of the file (e.g. "text/html") |
nodisplay | if True also entries that have the NoDisplay flag are included |
Returns | |
a list of Application objects that are known to be able to handle this file type |
Parameters | |
klass | Undocumented |
mimetype | the mime-type of the file (e.g. "text/html") |
application | an Application object or None |
Create a new usercreated desktop entry which defines a custom command to handle a certain file type.
Note that the name under which this definition is stored is not the same as Name. Check the 'key' attribute of the returned object if you want the name to retrieve this application later.
Parameters | |
mimetype | the file mime-type to handle with this command |
Name | the name to show in e.g. the "Open With.." menu |
Exec | the command to run as string (will be split on whitespace, so quote arguments that may contain a space). |
**param | any additional keys for the desktop entry |
Returns | |
the DesktopEntryFile object with some sensible defaults for a user created application entry. |
Parameters | |
name | the application name (e.g. "firefox"). As a special case "webbrowser" maps to a WebBrowser application instance and "startfile" to a StartFile application instance |
Returns | |
an Application object or None |