Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong site_data_dir #109

Closed
Freed-Wu opened this issue Nov 27, 2022 · 2 comments
Closed

wrong site_data_dir #109

Freed-Wu opened this issue Nov 27, 2022 · 2 comments

Comments

@Freed-Wu
Copy link
Contributor

In README, on Linux:

from platformdirs import *
appname = "SuperApp"
appauthor = "Acme"
site_data_dir(appname, appauthor)
'/usr/local/share/SuperApp'

However, I get

In [16]: site_data_dir(appname, appauthor)
Out[16]: "/home/wzy/.local/share/SuperApp"

Is it a bug?

@gaborbernat
Copy link
Contributor

gaborbernat commented Nov 27, 2022

Could be. You'll need to provide more information though. Perhaps you have a bad XDG_DATA_DIRS environment variable set https://github.com/platformdirs/platformdirs/blob/main/src/platformdirs/unix.py#LL49

@Freed-Wu
Copy link
Contributor Author

You are right. Now I must find why the bad XDG_DATA_DIRS is added. Thanks!

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

No branches or pull requests

2 participants