Commit b4f8765
committed
fix: respect XDG base directory env vars for config and log paths
Config loader now checks XDG_CONFIG_HOME before falling back to
~/.config/opencode. Logger now uses XDG_DATA_HOME (defaulting to
~/.local/share) for log storage, which is where runtime data belongs
per the XDG Base Directory Specification.
No behavior change for users with default (unset) XDG paths.1 parent 3877f31 commit b4f8765
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
526 | 526 | | |
527 | 527 | | |
528 | 528 | | |
529 | | - | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
530 | 532 | | |
531 | 533 | | |
532 | 534 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
0 commit comments