⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

[Feature]: Support XDG Base Directory Specification on Windows #202

@BradKnowles

Description

@BradKnowles

Problem Statement

I'm trying to adopt the XDG Base Directory Specification across all my OSes for consistency and easier management of dotFiles across the various OSes.

In my PowerShell profile I have environment variables set to mimic the XDG spec.

# Set XDG Base Directory Specification paths
# https://specifications.freedesktop.org/basedir-spec/latest/
# https://wiki.archlinux.org/title/XDG_Base_Directory
$Env:XDG_CONFIG_HOME="$Env:USERPROFILE\.config"
$Env:XDG_CACHE_HOME="$Env:USERPROFILE\.cache"
$Env:XDG_DATA_HOME="$Env:USERPROFILE\.local\share"
$Env:XDG_STATE_HOME="$Env:USERPROFILE\.local\state"

Since XDG is being followed on Linux if XDG_DATA_HOME is set, could the same logic be applied to Windows?

Proposed Solution

Allow checking for XDG variables on multiple OSes.

Alternatives Considered

I could set $Env:DTVEM_ROOT to something like $Env:XDG_DATA_HOME\dtvem before installing.

Feature Category

Configuration/settings

How important is this feature to you?

Medium - Nice to have

Use Case

No response

Benefits

No response

Additional Context

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions