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

Add basic support for XDG dirs #222

Merged
merged 1 commit into from
Dec 10, 2022
Merged

Conversation

silenc3r
Copy link
Contributor

@silenc3r silenc3r commented Oct 9, 2021

This PR adds some basic support for XDG directory specification:

  • Read configuration from XDG_CONFIG_HOME/nvpy.cfg (usually ~/.config/nvpy.cfg) if exits. This file has the highest priority and overwrites settings from other configuration files.
  • On Linux save user settings in XDG_CACHE_HOME/nvpy_settings (usually ~/.cache/nvpy_settings).

Read configuration from `XDG_CONFIG_HOME/nvpy.cfg` (usually
`~/.config/nvpy.cfg`) if exits. This file has the highest priority
and overwrites settings from other configuration files.

Save user settings in `XDG_CACHE_HOME/nvpy_settings` (usually
`~/.cache/nvpy_settings`) on linux.
@silenc3r
Copy link
Contributor Author

silenc3r commented Oct 9, 2021

This PR partially solves #185

@yuuki0xff yuuki0xff self-assigned this Feb 9, 2022
@yuuki0xff yuuki0xff added this to the v2.3.0 milestone Jun 26, 2022
@yuuki0xff yuuki0xff self-requested a review December 10, 2022 21:38
@yuuki0xff yuuki0xff merged commit a9f33dc into cpbotha:master Dec 10, 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.

2 participants