openai / openai/codex

Codex Desktop ignores XDG Documents directory on localized Linux systems

Open
#38,945 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

app bug
Dominant language
Rust
Stars
125k
Forks
19.4k
PR merge metrics
PR metrics pending

Description

What version of the Codex App are you using (From “About Codex” dialog)?

Codex/ChatGPT Desktop: 26.803.81509

What subscription do you have?

Plus

What platform is your computer?

Linux 7.1.8-arch1-3 x86_64

What issue are you seeing?

On Linux with locale pt_BR.UTF-8, my Documents directory is configured as /home/rafael/Documentos, confirmed by xdg-user-dir DOCUMENTS.
However, Codex Desktop always creates projectless workspaces under /home/rafael/Documents/Codex.
The desktop app appears to construct this path using homeDirectory + "Documents" + "Codex" instead of consulting the XDG user directory configuration.
Expected behavior:
Codex should create its workspace under /home/rafael/Documentos/Codex, or provide a setting to choose the projectless workspace directory.
Environment:
Codex/ChatGPT Desktop: 26.803.81509
Package: chatgpt-desktop-bin 26.803.81509-1
Desktop: GNOME
Locale: pt_BR.UTF-8
xdg-user-dir DOCUMENTS: /home/rafael/Documentos

What steps can reproduce the bug?

Feedback ID: 01a00e24-6b5a-7781-9279-3cdddd00da7a

What is the expected behavior?

No response

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how the Linux desktop app constructs the projectless workspace path and where it reads XDG user-directory configuration; the issue identifies xdg-user-dir DOCUMENTS as the reference behavior. Reproduce with locale pt_BR.UTF-8 and verify that the workspace is created under the configured Documents directory, such as /home/rafael/Documentos/Codex.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux, rust
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.