class DesktopEntryDict(SectionedConfigDict, Application): (source)
Known subclasses: zim.gui.applications.DesktopEntryFile, zim.gui.customtools.CustomToolDict
Base class for DesktopEntryFile, defines most of the logic.
The following keys are supported:
See parse_exec() for interpolating these keys. If the command does not contain any keys, the file paths or URLs to open are just appended to the command.
| Method | __init__ |
Constructor |
| Method | get_pixbuf |
Get the application icon as a GdkPixbuf.Pixbuf. @param size: the icon size as gtk constant @returns: a pixbuf object or None |
| Method | isvalid |
No summary |
| Method | parse_exec |
No summary |
| Method | update |
Same as dict.update() |
| Property | cmd |
Undocumented |
| Property | comment |
Undocumented |
| Property | key |
Undocumented |
| Property | name |
Undocumented |
| Property | nodisplay |
Undocumented |
| Property | tryexeccmd |
Undocumented |
| Class Variable | _definitions |
Undocumented |
Inherited from Application:
| Method | __eq__ |
Undocumented |
| Method | __repr__ |
Undocumented |
| Method | pipe |
Run the application in a sub-process and capture the output. Like run(), but connects to stdin and stdout for the sub-process. |
| Method | run |
No summary |
| Method | spawn |
No summary |
| Method | tryexec |
No summary |
| Constant | STATUS_OK |
Undocumented |
| Static Method | _lookup |
Lookup cmd in PATH |
| Method | _checkargs |
Undocumented |
| Method | _cmd |
Undocumented |
zim.applications.Application.__init__| Parameters | |
| cmd | the command for the external application, either a string for the command, or a tuple or list with the command and arguments |
| tryexeccmd | command to check in tryexec() as string. If None will default to cmd or the first item of cmd. |
zim.gui.customtools.CustomToolDict| Parameters | |
| size | the icon size as gtk constant |
| Returns | |
| a pixbuf object or None | |
zim.gui.customtools.CustomToolDict| Returns | |
| True if all required fields are set |
zim.gui.customtools.CustomToolDict| Parameters | |
| args | list of either URLs or File objects |
| Returns | |
| the full command to execute as a tuple | |