Skip to content

XDG compatibility #722

@glensc

Description

@glensc

pipx installs stores all it's files to ~/.local/pipx, but that's not what XDG spec says.

These should be probably changed to match:

  • ~/.local/pipx/logs -> $XDG_STATE_HOME/pipx/logs
  • ~/.local/pipx/shared -> $XDG_DATA_HOME/pipx/shared
  • ~/.local/pipx/venvs -> $XDG_DATA_HOME/pipx/venvs

venvs could be $XDG_STATE_HOME/pipx/venvs, but I looked virtualenvs are stored in ~/.local/share/virtualenvs.

when implementing, then for safe migration purposes, pipx should use old paths if it finds the parent directory (~/.local/pipx) present, otherwise use the new standards confirming paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions