Skip to content

Add XDG_PROJECTS_DIR support#148

Merged
adrg merged 3 commits intoadrg:masterfrom
shelepuginivan:feat/xdg_projects_dir
Apr 26, 2026
Merged

Add XDG_PROJECTS_DIR support#148
adrg merged 3 commits intoadrg:masterfrom
shelepuginivan:feat/xdg_projects_dir

Conversation

@shelepuginivan
Copy link
Copy Markdown
Contributor

The recent release 0.20 of xdg-user-dirs introduced XDG_PROJECTS_DIR user directory. The original proposal describes it as a directory for user software projects, like VCS directories, compiled binaries, etc. This PR adds support for this directory.

The default paths are similar to other user directories, such as XDG_DOCUMENTS_DIR. However, I couldn't find a Windows known folder with similar purpose. There are folders for installed programs, but from what I can tell there is no standard for "software projects". For now the Windows implementation just checks the environment variable and uses %USERPROFILE%\Projects as a fallback.

Let me know what you think.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (fd7dadd) to head (cfa09e3).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #148   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            9         9           
  Lines          418       427    +9     
=========================================
+ Hits           418       427    +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@adrg adrg merged commit db6a824 into adrg:master Apr 26, 2026
10 checks passed
@adrg
Copy link
Copy Markdown
Owner

adrg commented Apr 26, 2026

Hi @shelepuginivan,

Thank you for the PR. Looks good.
I also checked the known folder list and could not find any suitable equivalent either. So not providing one is fine.

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.

2 participants