DesktopFile (gb.desktop)

This class handles KDE/gnome "application launch files" or configuration files describing how a particular program is to be launched, how it appears in menus, etc. These are the ".desktop" files as defined by the freedesktop standard.

See the specifications for more information.

This class is
Creates a new desktop entry object for the existing file at Path.
creatable
.
This class acts like a
Returns the desktop entry file registered on the system for the Program name.
read-only
static array.

Static methods

FindExecutable  
Returns an array of desktop entry files that are registered as handling the provided MimeType.
FindMime  
Returns an array of desktop entry files that are registered as handling the provided MimeType.
FromMime  
RunExec  

Properties

Methods
Actions   AlternativeActions  
Sets or returns the Categories (menu groups) in which the entry should be shown in a menu (for possible values see the Desktop Menu Specification).
Categories  
Sets or returns the "comment=" entry for the desktop file. Depending on DM/DE usage this can appear as the tooltip for the entry, for example "View sites on the Internet".
Comment  
Return or set the command-line used for executing the program.
Exec  
Sets or returns the generic name of the application, for example "Web Browser".
GenericName  
Return or set if the desktop file has been deleted.
Hidden  
Sets or returns the name of the icon to display in file manager, menus, etc. If it is coded as an absolute path, the given file will be used. If it is not an absolute path, the algorithm described in the Icon Theme Specification will be used to locate the icon.
Icon  
Sets or returns the MIME type(s) supported by the application represented by the desktop entry.
MimeTypes  
Sets or returns the specific name of the application, for example "Mozilla".
Name  
NoDisplay  
Return or set the working directory to run the program in.
Path  
ProgramName  
Sets or returns whether the program represented by the desktop entry is to run in a "terminal" window.
Terminal  
WorkingDir  
GetIcon   Run  
Saves the desktop entry back to its' original file (providing you have write access there?).
Save  
exist