Skip to content

Draft: desktop-entry: Add TerminalExecuteArguments key

Manuel Schneider requested to merge manuelschneid3r/xdg-specs:master into master

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 their TerminalExecuteArguments (example). This is technically impossible to guarantee to work, even when applying some heuristic to map execute arguments, since some terminals broke their CLI in the past.
  • Builds the foundation for the xdg-terminal-execute specification proposal.

Note on the type string(s)

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

#54 !46

Edited by Manuel Schneider

Merge request reports

Loading