mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Files when custom config path is set #397
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @IAmIlliest on GitHub (Jun 2, 2024).
Describe the bug
Very minor: When installing the quick start (komorebic quickstart) with a custom config path set via:
$Env:KOMOREBI_CONFIG_HOME = 'D:\XDG\config\komorebi', it reports:Example ~/komorebi.json, ~/.config/whkdrc and latest ~/applications.yaml files downloaded"app_specific_configuration_path": "$Env:USERPROFILE/applications.yaml"not the custom path:
"app_specific_configuration_path": "D:\XDG\config\komorebi\applications.yaml"To Reproduce
Expected behavior
Expected to see 'whkdrc' end up in either
$Env:KOMOREBI_CONFIG_HOME/.config/whkdrcor just$Env:KOMOREBI_CONFIG_HOME/whkdrcI feel that would be neater than splitting them using the default ~/.config/ even when $Env:KOMOREBI_CONFIG_HOME has been set? (just so it all lands in one place)
expected komorebi.json to default to automatically be configured to use:
"app_specific_configuration_path": $Env:KOMOREBI_CONFIG_HOME/applications.yaml'rather than:
"app_specific_configuration_path": "$Env:USERPROFILE/applications.yaml"
(similarly, perhaps komorebic fetch-asc should report $Env:KOMOREBI_CONFIG_HOME/applications.yaml rather than the absolute path....or that might just confuse most users?)
@LGUG2Z commented on GitHub (Jun 2, 2024):
There is separate WHKD_CONFIG_HOME for whkdrc which should be respected if it is set in the environment.
As for komorebi.json and the interaction with KOMOREBI_CONFIG_HOME, because having URL strings that point to GitHub would trigger various anti virus tools with false positives we started embedding the static file used in the docs into the komorebic binary.
For this I think we might be able to do a check to see if the env var is defined when the quickstart command is run and do a last minute string replacement 🤔
@IAmIlliest commented on GitHub (Jun 2, 2024):
Okay, opening a ticket for WHKD_CONFIG_HOME as it appears it isn't being respected? - https://github.com/LGUG2Z/whkd/issues/41
Fair call on that, didn't think of the AV bit.
@LGUG2Z commented on GitHub (Jun 2, 2024):
Make some updates to the path resolution for the config command
KOMOREBI_CONFIG_HOMEis set, theEnv:USERPROFILEstring will be replaced withEnv:KOMOREBI_CONFIG_HOMEWHKD_CONFIG_HOMEis set, the samplewhkdrcfile will be created there