fix(editor): use subl as Sublime PATH command - #9673
Conversation
The branch dropped bin/omarchy-default-editor, bin/omarchy-launch-editor and test/shell.d/default-apps-test.sh from 755 to 644. `omarchy-default-editor` is reached through PATH -- by the router, by the menu's `checked` guard, and by default-apps-test.sh, which puts the repo's own bin/ on PATH -- and PATH resolution skips a file without the executable bit, so the whole editor suite failed at its first case with the script silently unfindable. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Reviewed by Claude Opus 5, with an independent second opinion from Codex at xhigh reasoning. Tests were executed on a disposable Omarchy VM rather than only read. Your scope note is right and the premise holds. I pulled the AUR One real defect, fixed and pushed as 7109662. The branch dropped Ran on the worker at 28abc4a, before the fix:
And at 7109662, after it:
One thing left open, which #9656 does not handle either: anyone who already selected Sublime has Codex agreed with the mode finding, which I had already read out of the diff, and added the mechanism I had not looked at: the router's own #9656 fixes the same issue with the same production change, but adds a |
|
Addressed the leftover checked-state: |
|
Re-reviewed at 1407271. The one thing left open from the last pass is closed.
The new test is real coverage rather than a green light. Deleting line 21 on the worker and re-running turns it red on exactly that assertion — The rest of the rename holds together. Ran on a disposable Omarchy VM at 1407271, not merely read:
Reviewed by Claude Opus 5, with a second opinion from Codex at xhigh reasoning. Codex found no defect and agreed with the conclusions above, which I had already written down, so its independence is not currently guaranteed. It did contribute one thing I had not worked through: the Nothing pushed this pass; the branch is clean as it stands. It is waiting on the maintainer, who still has to choose between this and #9656. That one makes the same production change to the case arm and the launcher but has no getter remap, so a pre-existing Sublime user's row stays unticked; it leaves |
Why
Package
sublime-text-4puts/usr/bin/sublon PATH, notsublime_text.omarchy-default-editorstored and checkedsublime_text, so after install Omarchy still treated Sublime as missing andomarchy-launch-editorfell back to nvim. Defaults → Editor never listed it. Fixes #9643.Scope
subl; keep menu selection and gtk-launch desktop idsublime_text(install path is already correct — do not change it).sublime_text→sublinomarchy-launch-editorso existing defaults still launch.subl.sublime-text-4→subl(the previous mock lied and mapped tosublime_text).Tradeoffs
Store the PATH command, not the desktop id. One extra alias in the case statement (
sublime_text | subl) and a one-line launch remap. Avoids changing the install/gtk-launch id, which is correct.Blast radius
Default-editor selection, launch, and the Defaults menu check for Sublime only. Other editors unchanged. Existing stored
sublime_textstill launches via the remap.Verification
bash test/shell.d/default-apps-test.sh— all passed, including "editor defaults install every missing editor before selection". No Omarchy GUI repro here (GNOME box, not Omarchy/Hyprland).Fixes #9643