Skip to content

Commit 90dee7e

Browse files
committed
fix(core): honor HOME and USERPROFILE for share dir
1 parent 4d31066 commit 90dee7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rust/kagent/src/share.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub async fn ensure_share_dir() -> PathBuf {
1313
}
1414

1515
fn resolve_home_dir() -> PathBuf {
16-
for key in ["KIMI_HOME", "HOME", "USERPROFILE"] {
16+
for key in ["HOME", "USERPROFILE"] {
1717
if let Some(path) = std::env::var_os(key) {
1818
if !path.is_empty() {
1919
return PathBuf::from(path);

0 commit comments

Comments
 (0)