Skip to content

fix: support linux config paths with unified home resolution#223

Open
jiang1997 wants to merge 1 commit into
TencentCloud:mainfrom
jiang1997:fix/linux-config-paths
Open

fix: support linux config paths with unified home resolution#223
jiang1997 wants to merge 1 commit into
TencentCloud:mainfrom
jiang1997:fix/linux-config-paths

Conversation

@jiang1997

Copy link
Copy Markdown

Description | 描述

  • checks the per-user app config directory before falling back to the data dir
    • Linux: $XDG_CONFIG_HOME/memory-tencentdb or ~/.config/memory-tencentdb
    • macOS/Windows paths are supported by the same helper
  • uses one shared home fallback chain for config lookup and default data dir:
    HOME -> USERPROFILE -> os.homedir() -> userInfo().homedir -> /tmp
  • keeps missing optional config candidates silent, avoiding repeated missing-path noise
  • adds regression tests for Linux config paths and home-resolution consistency

Related Issue | 关联 Issue

Fix #103

Change Type | 修改类型

  • Bug fix | Bug 修复
  • New feature | 新功能
  • Documentation update | 文档更新
  • Code optimization | 代码优化

Self-test Checklist | 自测清单

  • Verified locally | 本地验证通过
  • No existing features affected | 无影响现有功能

@jiang1997 jiang1997 marked this pull request as ready for review June 15, 2026 14:09
@Maxwell-Code07

Copy link
Copy Markdown
Collaborator

Thanks for the contribution! We'll review the Linux config path support.

Add optional-path helpers for XDG-style config lookup and resolveHomeDir()
so gateway config discovery and default data dir share the same home
fallback chain (HOME, USERPROFILE, os.homedir, userInfo, /tmp).
@jiang1997 jiang1997 force-pushed the fix/linux-config-paths branch 3 times, most recently from cbcb088 to e8047a2 Compare June 15, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[good first issue]🎯 Plugin reads platform-specific paths that do not exist on Linux

2 participants