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. Otherwise it tries to detect your desktop environment and find default terminal emulator for it. If all guesses failed, it uses ["xterm", "-e"] as fallback. Note: This function always returns empty array on non-freedesktop systems.

string[]
getTerminalCommand
nothrow @trusted
(
)

Meta