Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

配置文件位置遵循XDG规范 #55

Open
wi24rd opened this issue Apr 28, 2019 · 4 comments
Open

配置文件位置遵循XDG规范 #55

wi24rd opened this issue Apr 28, 2019 · 4 comments

Comments

@wi24rd
Copy link

wi24rd commented Apr 28, 2019

man file-hierarchy

  ~/.config/
       Application configuration and state. When a new user is created, this directory will
       be empty or not exist at all. Applications should fall back to defaults should their
       configuration or state in this directory be missing. If an application finds
       $XDG_CONFIG_HOME set, it should use the directory specified in it instead of this
       directory.

建议用 .config/ydcv/ydcv.conf 或者 .config/ydcv.conf

@wi24rd wi24rd changed the title 位置文件位置遵循XDG规范 配置文件位置遵循XDG规范 Apr 28, 2019
@wi24rd
Copy link
Author

wi24rd commented Jul 13, 2019

Dushistov/sdcv#51

@Freed-Wu
Copy link
Contributor

I advice to use https://pypi.org/project/appdirs/.

@Freed-Wu
Copy link
Contributor

appdirs has stopped maintenance. Use platformdirs to replace it.

@Freed-Wu
Copy link
Contributor

Freed-Wu commented Dec 3, 2022

I try to realize one alternative which use platformdirs to provide XDG function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants