DesktopFile.startApplication

Starts the program associated with this .desktop file using urls as command line params. Note: If the program should be run in terminal it tries to find system defined terminal emulator to run in. First, it probes TERM environment variable. If not found, checks if /usr/bin/x-terminal-emulator exists on Linux and use it on success. Defaulted to xterm, if could not determine other terminal emulator. Note: This function does check if the type of desktop file is Application. It relies only on "Exec" value.

  1. Pid startApplication(string[] urls)
    class DesktopFile
    const @trusted
    Pid
    startApplication
    (
    string[] urls = null
    )
  2. Pid startApplication(string url)

Return Value

Type: Pid

Pid of started process.

Throws

ProcessException on failure to start the process. Exception if expanded exec string is empty.

Meta