Store pipx data in platform-specific user directories#1001
Conversation
Co-authored-by: chrysle <fritzihab@posteo.de>
Co-authored-by: chrysle <fritzihab@posteo.de>
|
How does this affect existing installations? I feel we should add something in the documentation for this. Even if existing installations are not affected at all (i.e. will continue to use the old paths), we should add some notes to guide migration if users want to use the new paths. |
|
Existing installations should not be affected.
Do you have any suggestions on where to put the note? |
|
Since paths in docs have been changed to the new locations, maybe we can frame this as a potential question a user may have, e.g. files are not at the expected locations. An entry in Troubleshooting can explain why that is the case, it should not affect functionalities, provide a table to map old and new paths, and explain how to migrate if the user inclines (I assume by exporting and reinstalling all apps?) |
Would it be better to add a new command/flag to handle the path change, or should it be done manually? |
I think that's not worth it... Most users will upgrade their |
Co-authored-by: chrysle <fritzihab@posteo.de>
Co-authored-by: chrysle <fritzihab@posteo.de>
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
|
Thanks for the PR! |
|
Hmm, having moved My XDG variables: |
|
The spec doesn't include XDG_BIN_HOME. |
|
Oh, right, it's a unofficial one. I also have XDG_LOG_HOME, because a lot of tools still use that (and i find it more convenient). Still, XDG_DATA_HOME is set; it shouldn't create a .local/bin. Is there somewhere a config i need to update/delete? |
docs/changelog.mdSummary of changes
Store pipx data in platform-specific user directories using platformdirs.
e.g. on Linux/Unix
~/.local/pipx/logs->$XDG_STATE_HOME/pipx/logs~/.local/pipx/shared->$XDG_DATA_HOME/pipx/shared~/.local/pipx/venvs->$XDG_DATA_HOME/pipx/venvs~/.local/pipx/.trash->$XDG_DATA_HOME/pipx/trash~/.local/pipx/.cache->$XDG_CACHE_HOME/pipxIf
~/.local/pipxexists, revert to old behavior.Fixes #722
Test plan
Tested by running
Results