Function DesktopFile.startLink

Opens url defined in .desktop file using xdg-open.

void startLink() @trusted const;

Note

This function does not check if the type of desktop file is Link. It relies only on "URL" value.

Throws

ProcessException on failure to start the process. Exception if desktop file does not define URL or it's empty.

See Also

start

Example

auto df = new DesktopFile();
assertThrown(df.startLink());