Draft: desktop-entry: Add TerminalExecuteArguments key
Description
This commit introduces a new optional key, TerminalExecuteArguments
, to the Desktop Entry Specification. This key is intended for use by terminal emulator applications that support executing a command line within the terminal, providing a reliable interface for clients to utilize.
Rationale:
- Carve the defacto standard of a command line execution interface into stone. All terminals that make sense out of it support it.
- Close the
Terminal
key gap. Implementations of the desktop entry spec have to maintain a hardcoded list of terminals and theirTerminalExecuteArguments
(example). This is technically impossible to guarantee to work, since some terminals broke their CLI in the past. - Builds the foundation for the xdg-terminal-execute specification proposal.
string(s)
Note on the type Some terminals require multiple arguments to properly execute a command line within the terminal. This may be intended or due to bugs. May also be used to pass customizations like --window
or --tab
.
Example:
A terminal emulator like gnome-terminal
could define this key as:
TerminalExecuteArguments=--window;--
Related
Edited by Manuel Schneider