Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

State of a default command execution interface support on xdg platforms #1416

Open
2 of 23 tasks
ManuelSchneid3r opened this issue Jul 16, 2024 · 0 comments
Open
2 of 23 tasks

Comments

@ManuelSchneid3r
Copy link
Member

ManuelSchneid3r commented Jul 16, 2024

Running a command in a terminal from another app is a common usecase. Almost all terminals provide such a command execution interface (-e, -x, -- or such). Clients of the desktop entry spec can guess, but they cant know for sure since terminals break their CLI (no offense, I'd be happy if you all break it to go to --).

There is a freedesktop spec proposal that tries to standardize the way we configure a default terminal for command execution. It implicitly solves the above problem by requiring the dektop entry to provide this info.

To support it (X-)ExecArg has to be added to the desktop file (like this, the reference implementation respects both) and, as the proposal specifies currently, make sure there is TerminalEmulator in Categories. It has not yet been approved, therefore the X-.

The draft states that the default should be -e (because xterm once did). But I think we should not have a default at all because we have to support terminals not having such an interface and even if we do (which will break a lot of configs) we should use -- (terminal authors should as well), because it is not a usual argument but instead changes the way the remainder of the command line is to be interpreted. So please be explicit.

As the author of a launcher I'd be even happy with the implicit changes to the lacking (we have the Terminal key, do we?) desktop entry spec. There is also a related intentapp draft and a terminal intent. I dont have a favorite, but a pragmatic opinion. This will help making Linux a better user experience and a less annoying developer experience.

Thank you


@ManuelSchneid3r ManuelSchneid3r changed the title State of xdg-terminal-exec support State of a default command execution interface support on xdg platforms Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant