DesktopFile.start

Starts application or open link depending on desktop entry type.

class DesktopFile
@trusted
void
start
const
(
)

Throws

ProcessException on failure to start the process. Exception if type is DesktopEntry.Type.Unknown or DesktopEntry.Type.Directory.

Examples

1 string contents = "[Desktop Entry]\nType=Directory";
2 auto df = new DesktopFile(iniLikeStringReader(contents));
3 assertThrown(df.start());
4 
5 df = new DesktopFile();
6 assertThrown(df.start());

See Also

Meta