Repository navigation
Conversation
|
One quick issue!
|
…e icon cleanup. Introduced safe_icon_name and desktop_value functions for better name handling and added checks to remove associated icons for nested launchers.
|
Fixed it! |
|
2 issues with the new changes;
|
…prove icon removal logic. Introduced desktop_string_unescape for better string processing and added robust checks for icon cleanup associated with TUIs. Updated tests to validate new functionality and ensure proper handling of edge cases.
|
…con management. Introduced logic to track and remove icons associated with installed applications, improving cleanup processes. Updated tests to validate the new functionality and ensure proper handling of edge cases.
|
should be fixed, let me know if anything needs to be changed! |
|
Three issues remain:
For example:
The pre-existing shared
For example, an app named:
produces:
The owned icon name should be normalized to one line or serialized and decoded safely.
That tab collides with the picker’s tab-delimited row format, causing interactive removal to calculate the wrong desktop-file path and leave the launcher installed. The decoder needs to process escapes left-to-right so |
…mline icon slug generation. Introduced owned_icon_slug function for consistent icon naming and updated desktop file writing logic. Enhanced omarchy-tui-remove to ensure proper cleanup of owned icons and improved handling of legacy icons. Updated tests to validate new functionality and edge cases.
|
|
[P2] Owned icon filenames can collide. (bin/omarchy-tui-install:108) [P3] Empty applications directory incorrectly enables Remove -> TUI (default/omarchy/omarchy-menu.jsonc:291) [P3] Newline-only names cannot be removed interactively. (bin/omarchy-tui-remove:62) |
|
Automated duplication check: this pull request looks similar to #9150, which covers the same TUI install hardening. I keep that one open and close this one to consolidate review. If you feel this is the wrong decision, please open the PR again with a note on the difference. |
Summary
require_plain_name,desktop_string_escape, anddownload_iconfromomarchy-webapp-installintoomarchy-tui-install.desktopfile (file-syntax only; no Exec-spec re-quoting ofAPP_EXEC)omarchy-tui-removeand delete the indexed path so pre-fix nested launchers are removableFiles changed
bin/omarchy-tui-installbin/omarchy-tui-removetest/shell.d/tui-install-escaping-test.shTest results
bash -non touched scripts: passgit diff --check: cleantest/shell.d/tui-install-escaping-test.sh: pass (8 assertions)webapp-install-escaping-test.sh,webapp-name-test.sh,webapp-install-test.sh: passTriaged as hardening per discussion with @ErikMelton; follow-up to the webapp-installer hardening in 4.0.2.