getTerminalCommand

Detect command which will run program in terminal emulator. On Freedesktop it looks for x-terminal-emulator first. If found ["/path/to/x-terminal-emulator", "-e"] is returned. Otherwise it looks for xdg-terminal. If found ["/path/to/xdg-terminal"] is returned. If all guesses failed, it uses ["xterm", "-e"] as fallback. Note: This function always returns empty array on non-freedesktop systems.

nothrow @trusted
string[]
getTerminalCommand
()

Meta