DesktopFile.start

Starts application or open link depending on desktop entry type.

class DesktopFile
@trusted const
Pid
start
()

Return Value

Type: Pid

Pid of started process.

Throws

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

Examples

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

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

See Also

startApplication, startLink

Meta