DesktopFile.start

Starts application or open link depending on desktop entry type.

class DesktopFile
@trusted const
void
start
()

Throws

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.

Examples

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

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

See Also

Meta