Repository navigation
desktop: point xdg-terminal-exec at foot - #303
Merged
Merged
Conversation
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.
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
# Conflicts: # CHANGELOG.md
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Desktop entries with
Terminal=true(for example cliamp) did nothing whenlaunched from the shell's app drawer, and the menu's Install → Package,
Install → AUR and Remove → Package entries already call
xdg-terminal-execbut the image did not install it (#161). This ships a system
xdg-terminals.listthat names foot. The package dependency lives in acompanion PR on OrchardLinux/packages (
terminal-handler).What & why
The launcher (
AppLibrary.qml) runs regular apps throughuwsm-app, buta
Terminal=trueentry is left to Quickshell'sDesktopEntry.execute(),which goes through the desktop's terminal helper. There is no
xdg-terminal-execon 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.listnamesfoot.desktop.xdg-terminal-exec reads
xdg-terminals.listfromXDG_CONFIG_DIRS(default
/etc/xdg). The file is new and is not owned by anotherpackage, so it is not an etc-override.
xdg-terminal-execbinary is added to theomarchy-arecipe inOrchardLinux/packages (branch
terminal-handler, pkgrel 1 → 2). It isan
anypackage in Arch Linux ARMextrafor bothaarch64andarmv7h. Merge that PR as well; either order is fine. The list isharmless 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-TerminalArgExecfalls back to-e, which foot accepts. Upstreamfoot's
foot.desktopdoes not shipX-TerminalArgAppId=, so--app-id=org.omarchy.terminalon the menu commands may be ignored; thewindow still opens in foot. App-id naming of floating terminals is
#287 / #291 and is left to those PRs.
Trade-offs
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.
~/.local/share/applications/foot.desktoparenot migrated; they do not need to be, because the system list names the
id
foot.desktop, which foot already installs under/usr/share/applications.Once the helper and the list are in place,
Terminal=trueentries shouldwork 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).
cliamp from the drawer did nothing; a user
cliamp.desktopwithExec=foot --app-id=cliamp --title=cliamp cliampandTerminal=falseworked. 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
X-TerminalArgAppId=--app-id=(and title) to a foot desktopfile, so the menu's
--app-id=org.omarchy.terminalis honoured. SeeFloating terminals from the menu show as org.omarchy.terminal in open apps #287 / open PR The menu's floating terminals are named Terminal in the overview #291.
TERMINAL=footin the login session (belt and suspenders ifsome path still uses
$TERMINAL).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-handlerfor 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
dependsblock asthe 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>); setyour own identity before submitting.
Companion PR
The
xdg-terminal-execdependency is in OrchardLinux/packages#42. Both should merge; either order is fine.