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

Manually get XDG_CONFIG_HOME and drop pyxdg from dependencies #102

Merged
merged 1 commit into from Jun 21, 2022

Conversation

druckdev
Copy link
Contributor

Drop pyxdg as dependency and instead get XDG_CONFIG_HOME manually.
The same way is being used as pyxdg does:
https://gitlab.freedesktop.org/xdg/pyxdg/-/blob/bd999c1c/xdg/BaseDirectory.py#L37-L38

There is a name clash between the two packages xdg and pyxdg. See:
https://gitlab.freedesktop.org/xdg/pyxdg/-/issues/24

As only that one environment variable is being used from the library
it can just as good be expanded manually.
This solves the confusion and problems for users who have both
installed and it also reduces the dependency footprint.

Also use os.path.join for config_file.

Drop `pyxdg` as dependency and instead get `XDG_CONFIG_HOME` manually.
The same way is being used as `pyxdg` does:
https://gitlab.freedesktop.org/xdg/pyxdg/-/blob/bd999c1c/xdg/BaseDirectory.py#L37-L38

There is a name clash between the two packages `xdg` and `pyxdg`. See:
https://gitlab.freedesktop.org/xdg/pyxdg/-/issues/24

As only that one environment variable is being used from the library
it can just as good be expanded manually.
This solves the confusion and problems for users who have both
installed and it also reduces the dependency footprint.

Also use `os.path.join` for `config_file`.
@theironrobin theironrobin merged commit cf220ba into theironrobin:main Jun 21, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants