Add support for XDG spec
Nobody has claimed this yet.
Assessment
This issue has not been assessed yet.
Description
Hi. At some point, cagent became part of Docker Desktop. Now, when I open Docker Desktop, cagent creates its own config directory. The problem is that cagent creates two of them: one in my home directory, another in .config/. Here is the log:
~
$ env | grep "XDG_" 20:21:54
XDG_CACHE_HOME=/Users/vanyauhalin/Library/Caches
XDG_CONFIG_HOME=/Users/vanyauhalin/.config
XDG_DATA_DIRS=/usr/local/share:/usr/share:/Applications/Ghostty.app/Contents/Resources/ghostty/..
XDG_DATA_HOME=/Users/vanyauhalin/.local/share
XDG_RUNTIME_DIR=/var/folders/ws/1nchq9k97p91vbw4dtclzm_40000gn/T
XDG_STATE_HOME=/Users/vanyauhalin/.local/state
~
$ la ~ | grep "cagent" 15ms 20:21:57
~
$ la .config/ | grep "cagent" 26ms 20:21:59
# Here I open Docker Desktop app.
~
$ la ~ | grep "cagent" 22ms 20:22:07
drwxr-xr-x 3 vanyauhalin staff 96 Feb 7 20:22 .cagent
~
$ la .config/ | grep "cagent" 25ms 20:22:16
drwxr-xr-x 3 vanyauhalin staff 96 Feb 7 20:22 cagent
~
My request is, could you please support the XDG specification and use only one directory? And side question, if cagent now part of Docker Desktop, why does it create its own directory? Thank you.
https://github.com/moby/moby/issues/20693/
https://github.com/moby/moby/issues/44640/
- Dominant language
- Go
- Stars
- 3.3k
- Forks
- 462
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 273
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/docker-agent
-
area/docs
Difficulty 1/5 Under an hour Newbie friendliness 88/100
docker/docker-agent#4054 ·
-
area/testing
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
docker/docker-agent#4052 ·
-
area/tools
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
docker/docker-agent#3933 ·
-
area/tools
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
docker/docker-agent#3929 ·
-
<short description> Openarea/rag
Difficulty 3/5 1-2 days Newbie friendliness 55/100
docker/docker-agent#4364 · 1 comment ·
All issues in docker/docker-agent
Similar issues
-
kind/bug needs-triage
Difficulty 1/5 Under an hour Newbie friendliness 72/100
matrixorigin/matrixone#29223 ·
-
needs-acceptance wg/data-plane-networking
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
vllm-project/semantic-router#4024 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
alexgorbatchev/dotfiles#107 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100