Function DesktopFile.start

Starts application or open link depending on desktop entry type.

void start() @trusted const;

Throws

ProcessException on failure to start the process. DesktopExecException if type is DesktopEntry.Type.Application and the exec string is invalid. Exception if type is DesktopEntry.Type.Unknown or DesktopEntry.Type.Directory, or if type is DesktopEntry.Type.Link, but no url provided.

See Also

startApplication, startLink

Example

string contents = "[Desktop Entry]\nType=Directory";
auto df = new DesktopFile(iniLikeStringReader(contents));
assertThrown(df.start());

df = new DesktopFile();
assertThrown(df.start());