theironrobin / siglo

GTK app to sync InfiniTime watch with PinePhone
Mozilla Public License 2.0
153 stars 23 forks source link

Manually get `XDG_CONFIG_HOME` and drop pyxdg from dependencies #102

Closed druckdev closed 2 years ago

druckdev commented 2 years ago

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.