Skip to content

Respect the XDG Base Directory Specification#183

Merged
klattimer merged 1 commit intoklattimer:masterfrom
BoostCookie:master
Aug 17, 2025
Merged

Respect the XDG Base Directory Specification#183
klattimer merged 1 commit intoklattimer:masterfrom
BoostCookie:master

Conversation

@BoostCookie
Copy link
Contributor

Use $XDG_CONFIG_HOME/lgtv/ as config directory.
If $XDG_CONFIG_HOME is not set then it defaults to $HOME/.config. The legacy config directory ~/.lgtv/ is kept for compatibility.

A few additional improvements in this commit:

  • Do not create empty config directories
  • use json.dump(object, file_handle) instead of file_handle.write(json.dumps(object))
  • use json.load(file_handle) instead of json.loads(file_handle.read())
  • Bump version of requirement ws4py to 0.6.0, fixing issue SSL has no wrap_socket #165

Use $XDG_CONFIG_HOME/lgtv/ as config directory.
If $XDG_CONFIG_HOME is not set then it defaults to $HOME/.config.
The legacy config directory ~/.lgtv/ is kept for compatibility.

A few additional improvements in this commit:
- Do not create empty config directories
- use json.dump(object, file_handle) instead of
  file_handle.write(json.dumps(object))
- use json.load(file_handle) instead of json.loads(file_handle.read())
- Bump version of requirement ws4py to 0.6.0, fixing issue
  #165
@klattimer klattimer merged commit b3073d2 into klattimer:master Aug 17, 2025
@klattimer
Copy link
Owner

Lovely. Thank you

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.

2 participants