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 const
Pid
startLink
()

Return Value

Type: Pid

Pid of started process.

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

start

Meta