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

Save the settings file under XDG_CONFIG_HOME by default #107

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

liff
Copy link

@liff liff commented Sep 12, 2024

If the settings file does not exist in its legacy location in~/.nvidia-settings-rc, store it in$XDG_CONFIG_HOME/nvidia/settings-rc instead.

Fixes #30.

Add an utility function for locating the current user's home directory
using either $HOME or their passwd entry.
If the settings file does not exist in its legacy location in
`~/.nvidia-settings-rc`, store it in
`$XDG_CONFIG_HOME/nvidia/settings-rc` instead.

Fixes NVIDIA#30.
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.

Support the XDG Base Directory Specification
1 participant