Skip to content

misc/rio.desktop: add X-TerminalArg* keys for xdg-terminal-exec support #1933

Description

@alezunino

Summary

misc/rio.desktop defines none of the X-TerminalArg* keys required by the xdg-terminal-exec specification. Per the spec ("Desktop entry for a terminal"), an entry eligible for selection must have the TerminalEmulator category AND the X-TerminalArgExec key (X- prefix while the specification is in proposed status), which holds the command-execution argument placed before the requested command. Without it,
xdg-terminal-exec cannot reliably select or invoke Rio (strict mode rejects the entry; compat mode falls back to a -e default).

Current content (misc/rio.desktop)

[Desktop Entry]
Type=Application
TryExec=rio
Exec=rio
Icon=rio
Terminal=false
Categories=System;TerminalEmulator;

Name=Rio
GenericName=Terminal
Comment=A hardware-accelerated GPU terminal emulator powered by WebGPU
StartupWMClass=Rio
Actions=New;

[Desktop Action New]
Name=New Terminal
Exec=rio

Check:

grep -c '^X-TerminalArg' /usr/share/applications/rio.desktop  # 0

Expected / proposed fix

Add the keys from the attached rio.desktop.fixed:

 Actions=New;
+X-TerminalArgExec=--command
+X-TerminalArgAppId=--app-id
+X-TerminalArgTitle=--title-placeholder
 
 [Desktop Action New]

Mapping to Rio CLI:

  • X-TerminalArgExec=--command <-> -e, --command ... ("Command and args to execute (must be last argument)")
  • X-TerminalArgAppId=--app-id
  • X-TerminalArgTitle=--title-placeholder <-> --title-placeholder <TITLE> ("Start window with specified title")

The X- prefix is correct while the spec is in proposed status.

Resulting file (rio.desktop.fixed)

[Desktop Entry]
Type=Application
TryExec=rio
Exec=rio
Icon=rio
Terminal=false
Categories=System;TerminalEmulator;

Name=Rio
GenericName=Terminal
Comment=A hardware-accelerated GPU terminal emulator powered by WebGPU
StartupWMClass=Rio
Actions=New;
X-TerminalArgExec=--command
X-TerminalArgAppId=--app-id
X-TerminalArgTitle=--title-placeholder

[Desktop Action New]
Name=New Terminal
Exec=rio

Reproduce

xdg-terminal-exec --print-cmd -- htop
# with Rio as preferred/default terminal: fails or mis-invokes without the keys

Request

Please add the three X-TerminalArg* lines above to misc/rio.desktop.

References

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions