Skip to content

desktop: point xdg-terminal-exec at foot - #303

Merged
henrikklee merged 4 commits into
OrchardLinux:mainfrom
ozz1ee-dev:terminal-handler
Dec 6, 2026
Merged

henrikklee merged 4 commits into
OrchardLinux:mainfrom
ozz1ee-dev:terminal-handler

Conversation

@ozz1ee-dev

@ozz1ee-dev ozz1ee-dev commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Desktop entries with Terminal=true (for example cliamp) did nothing when
launched from the shell's app drawer, and the menu's Install → Package,
Install → AUR and Remove → Package entries already call xdg-terminal-exec
but the image did not install it (#161). This ships a system
xdg-terminals.list that names foot. The package dependency lives in a
companion PR on OrchardLinux/packages (terminal-handler).

What & why

The launcher (AppLibrary.qml) runs regular apps through uwsm-app, but
a Terminal=true entry is left to Quickshell's DesktopEntry.execute(),
which goes through the desktop's terminal helper. There is no
xdg-terminal-exec on the image, and no /etc/xdg/xdg-terminals.list (or
$TERMINAL) pointing at foot, so those launches do nothing.

  • system/overlay/etc/xdg/xdg-terminals.list names foot.desktop.
    xdg-terminal-exec reads xdg-terminals.list from XDG_CONFIG_DIRS
    (default /etc/xdg). The file is new and is not owned by another
    package, so it is not an etc-override.
  • The xdg-terminal-exec binary is added to the omarchy-a recipe in
    OrchardLinux/packages (branch terminal-handler, pkgrel 1 → 2). It is
    an any package in Arch Linux ARM extra for both aarch64 and
    armv7h. Merge that PR as well; either order is fine. The list is
    harmless without the helper, and the helper without the list may still
    discover a TerminalEmulator desktop file, but both together are the
    reliable default.

In compatibility mode (xdg-terminal-exec's default), a missing
X-TerminalArgExec falls back to -e, which foot accepts. Upstream
foot's foot.desktop does not ship X-TerminalArgAppId=, so
--app-id=org.omarchy.terminal on the menu commands may be ignored; the
window still opens in foot. App-id naming of floating terminals is
#287 / #291 and is left to those PRs.

Trade-offs

  • A new runtime dependency (xdg-terminal-exec, a small shell program).
    It stays on ARMv7 as well: the same drawer and menu run there, and the
    package is tiny compared with the slim set's omitted Firefox / libvips.
  • Existing user copies of ~/.local/share/applications/foot.desktop are
    not migrated; they do not need to be, because the system list names the
    id foot.desktop, which foot already installs under
    /usr/share/applications.
  • No per-app override desktop files (the local workaround for cliamp).
    Once the helper and the list are in place, Terminal=true entries should
    work as they are.

Testing

  • PYTHONPATH=.:tests python3 -m unittest test_xdg_terminals: 2 tests OK
    (the list names foot, and the package tree installs it mode 0644).
  • Tested by Oskar on an iPad Air (j72, Omarchy A 0.4.10, labwc): launching
    cliamp from the drawer did nothing; a user cliamp.desktop with
    Exec=foot --app-id=cliamp --title=cliamp cliamp and Terminal=false
    worked. This PR is the system-wide equivalent and was not lived on
    the device in place of that workaround.

Not tested: Install/Remove Package from the menu after this change, or
xdg-terminal-exec with foot's packaged desktop file on the tablet
(X-TerminalArg* keys).

Not covered

Relation to existing issues/PRs

Fixes #161 (xdg-terminal-exec is called but not installed), together with
the packages companion PR. Needs OrchardLinux/packages terminal-handler
for the dependency. Independent of #291 (window title / app id of floating
terminals). Open PR #234 (slim image optional commands) is unrelated, but
open packages PRs #27 / #37 / #39 also touch the same depends block as
the companion PR and will need a rebase there.

The CHANGELOG entry under Unreleased is proposed.

The commit author is a local placeholder (Oskar <oskar@localhost>); set
your own identity before submitting.

Companion PR

The xdg-terminal-exec dependency is in OrchardLinux/packages#42. Both should merge; either order is fine.

Desktop entries with Terminal=true (and the menu actions that already
call xdg-terminal-exec) did nothing on the tablet: no default terminal
was named, and the helper itself was not installed (see the packages
companion change). /etc/xdg/xdg-terminals.list now names foot.desktop.
Fixes OrchardLinux#161.
@henrikklee
henrikklee merged commit 5b3c970 into OrchardLinux:main Dec 6, 2026
11 checks passed
@henrikklee

Copy link
Copy Markdown
Contributor

Merged, thank you Oskar! Together with OrchardLinux/packages#42 (merged first, it brings xdg-terminal-exec), terminal apps and the menu's Install/Remove Package entries now open in foot. On your branch I only merged main to resolve CHANGELOG conflicts. Naming the floating terminal windows stays with #291.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

xdg-terminal-exec is called but not installed

2 participants