Constructs DesktopFile with "Desktop Entry" group and Version set to 1.0
This alias allows to call functions related to "Desktop Entry" group without need to call desktopEntry explicitly.
Creates new group usin groupName.
Range of groups in order how they are defined in .desktop file. The first group is always Desktop Entry.
Categories this program belongs to.
Sets the list of values for the "Categories" list.
Tooltip for the entry, for example "View sites on the Internet".
Expands Exec string into the array of command line arguments to use to start the program.
Generic name of the application, for example "Web Browser".
A list of strings which may be used in addition to other metadata to describe this entry.
Sets the list of values for the "Keywords" list.
ditto, but returns localized value.
ditto, but returns localized value.
ditto, but returns localized value.
The MIME type(s) supported by this application.
Sets the list of values for the "MimeType" list.
Specific name of the application, for example "Mozilla".
A list of strings identifying the desktop environments that should not display a given desktop entry.
A list of strings identifying the desktop environments that should display a given desktop entry.
Saves object to file using Desktop File format.
Saves object to string using Desktop File format.
Starts the program associated with this .desktop file using urls as command line params. Note: If the program should be run in terminal it tries to find system defined terminal emulator to run in. First, it probes TERM environment variable. If not found, checks if /usr/bin/x-terminal-emulator exists on Linux and use it on success. Defaulted to xterm, if could not determine other terminal emulator. Note: This function does check if the type of desktop file is Application. It relies only on "Exec" value.
ditto, but uses the only url.
Whether the program runs in a terminal window.
Sets "Terminal" field to true or false.
Sets "Type" field to type
The working directory to run the program in.
Join range of multiple values into a string using semicolon as separator. Adds trailing semicolon. If range is empty, empty string is returned.
Reads desktop file from file.
Reads desktop file from string.
Some keys can have multiple values, separated by semicolon. This function helps to parse such kind of strings to the range.
Represents .desktop file.