DesktopFile.startLink

Opens url defined in .desktop file using xdg-open. Note: This function does not check if the type of desktop file is Link. It relies only on "URL" value.

class DesktopFile
@trusted
void
startLink
const
(
)

Throws

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

Examples

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

See Also

Meta