Skip to content

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
omacom:quattrofrom
ThePrimeagen:fix/debug-print-unknown
Closed

ThePrimeagen wants to merge 1 commit into
omacom:quattrofrom
ThePrimeagen:fix/debug-print-unknown

Conversation

@ThePrimeagen

Copy link
Copy Markdown
Contributor

In a terminal opened from the desktop, omarchy debug --print --no-sudo prints "Unknown Omarchy command", though omarchy --help lists it. The Hyprland session puts /usr/share/omarchy/bin first on PATH, and bin/omarchy looks for commands only in its own folder, so it never finds the ones other packages install only to /usr/bin.

Screenshots

Before After
before after

Reproduce

  1. Press Super+Return to open a terminal.
  2. Run omarchy --help | grep 'omarchy debug': it lists omarchy debug.
  3. Run omarchy debug --print --no-sudo: it prints Unknown Omarchy command: omarchy debug --print --no-sudo.

More cases

omarchy debug idle, omarchy upload log, omarchy nvim setup, omarchy nvim refresh and omarchy local ai

Before After
before after

Related

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>
@greptile-apps

greptile-apps Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no actionable new issues were found.

Summary

The router now finds sibling-package commands installed only in /usr/bin when launched from /usr/share/omarchy/bin.

  • The Omarchy router finds commands installed by sibling packages.
  • Foreign command metadata no longer fails the router’s check.

No actionable new issues found. Tests were inspected but not run.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Resolve command] --> B{Executable in primary directory?}
  B -->|Yes| C[Use primary file]
  B -->|No| D{Secondary directory enabled?}
  D -->|Yes| E{Executable there?}
  E -->|Yes| F[Use secondary file]
  D -->|No| G[Continue route discovery or show help]
  E -->|No| G
Loading

Reviews (2) · Last reviewed commit: "Find the commands sibling packages insta..." · Reviewed by Greptile

@omarchybot

Copy link
Copy Markdown
Collaborator

Closing as a duplicate of #9290, whose diff this applies unchanged. Whether #9290 should become the one-line /usr/bin fallback suggested there is the maintainer's call.

Reviewed by Claude Opus 5.5 with Codex Medium as a second opinion; its independence is not guaranteed.

@omarchybot omarchybot added the duplicate This issue or pull request already exists label Nov 16, 2026
@omarchybot omarchybot closed this Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants