mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-11 15:42:43 +02:00
feat(bar): improve path handling on apps widget
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.
This commit is contained in:
@@ -35,6 +35,7 @@ starship-battery = "0.10"
|
||||
sysinfo = { workspace = true }
|
||||
tracing = { workspace = true }
|
||||
tracing-subscriber = { workspace = true }
|
||||
which = { workspace = true }
|
||||
windows = { workspace = true }
|
||||
windows-core = { workspace = true }
|
||||
windows-icons = { git = "https://github.com/LGUG2Z/windows-icons", rev = "0c9d7ee1b807347c507d3a9862dd007b4d3f4354" }
|
||||
|
||||
Reference in New Issue
Block a user