ProcessException on failure to start the process. desktopfile.utils.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.
string contents = "[Desktop Entry]\nType=Directory"; auto df = new DesktopFile(iniLikeStringReader(contents)); assertThrown(df.start()); df = new DesktopFile(); assertThrown(df.start());
Starts application or open link depending on desktop entry type.