Repository navigation
Run omarchy debug and the other commands installed only to /usr/bin from a desktop terminal - #18793
Closed
ThePrimeagen wants to merge 1 commit into
Closed
ThePrimeagen wants to merge 1 commit into
ThePrimeagen wants to merge 1 commit into
Conversation
On an installed system the router runs from /usr/share/omarchy/bin whenever that directory is first on PATH, as the Hyprland session puts it, and it only ever looked for commands in its own directory. That directory holds links for the omarchy package's commands alone, so every command another package installs only to /usr/bin was "Unknown Omarchy command" there while omarchy --help still listed it: omarchy debug, omarchy debug idle and omarchy upload log from omarchy-settings, and omarchy nvim setup and omarchy nvim refresh from omarchy-nvim. When it runs from /usr/share/omarchy/bin the router now also reads /usr/bin/omarchy-*, and a command in its own directory wins over one of the same name there. commands --check reports another package's metadata problems as foreign rather than failing on them. This is omacom#9290 brought onto quattro unchanged. Co-authored-by: Elija Sorensen <3824702+WhiskeyTuesday@users.noreply.github.com> Co-authored-by: Omarchybot <317366263+omarchybot@users.noreply.github.com>
Contributor
[Medium impact] The PR appears safe to merge; no actionable new issues were found. SummaryThe router now finds sibling-package commands installed only in
No actionable new issues found. Tests were inspected but not run.
|
Collaborator
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.
In a terminal opened from the desktop,
omarchy debug --print --no-sudoprints "Unknown Omarchy command", thoughomarchy --helplists it. The Hyprland session puts/usr/share/omarchy/binfirst onPATH, andbin/omarchylooks for commands only in its own folder, so it never finds the ones other packages install only to/usr/bin.Screenshots
Reproduce
omarchy --help | grep 'omarchy debug': it listsomarchy debug.omarchy debug --print --no-sudo: it printsUnknown Omarchy command: omarchy debug --print --no-sudo.More cases
omarchy debug idle,omarchy upload log,omarchy nvim setup,omarchy nvim refreshandomarchy local aiRelated
14abc0762.omarchy debug,debug idleandupload logunreachable because packaging puts them only in/usr/bin.omarchy debugand four other commands are unreachable inside the Hyprland session: envs.lua prepends an incomplete bin dir #6977: the same commands unreachable in the Hyprland session becauseenvs.luaprepends the partial folder.omarchy debugand 4 other commands are unroutable: dispatcher resolves subcommands from its own dir, so binaries from sibling packages are invisible #17125: the same bug, for all five commands.