DesktopEntry

Special set of functions for work with ini-like .desktop files.

Members

Static functions

addField
void addField(string filepath, string field, string value)

This function adds new field to ini-like .desktop file.

createNetworkLink
string createNetworkLink(string networkPath, string destinationDir, string name)

Creates a .desktop file with the link to the network resource.

getField
string getField(string filepath, string field)

This function returns value of specified field from .desktop file.

getTitle
string getTitle(string pathToDesktopFile)

The function returns title from .desktop file (field "Name").

getURL
string getURL(string pathToDesktopFile)

Returns link to network resource from .desktop file (field "URL").

setField
void setField(string filepath, string field, string value)

This function sets new value for existent field from .desktop file.

Meta