mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-03-23 01:49:21 +01:00
This commit improves path handling for commands and icons in the new Application widget by making use of PathExt::replace_env when loading the user-specified ApplicationsConfig. Crucially for scoop users, this means that user-agnostic references to scoop apps can now be made like this: ``` $Env:USERPROFILE/scoop/apps/zed-nightly/current/zed.exe ``` When attempting to look up an icon for a command, we now split the command on ".exe", and if this is a complete path to a file, we try to use it to extract an icon, otherwise we try to resolve a complete path using "which" before doing the same.