Skip to content

Save the settings file under XDG_CONFIG_HOME by default #107

Open
liff wants to merge 2 commits into
NVIDIA:mainfrom
liff:xdg
Open

Save the settings file under XDG_CONFIG_HOME by default #107
liff wants to merge 2 commits into
NVIDIA:mainfrom
liff:xdg

Conversation

@liff

@liff liff commented Sep 12, 2024

Copy link
Copy Markdown

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.
@fxzzi

fxzzi commented Jan 31, 2025

Copy link
Copy Markdown

thank you, seems to work perfectly for me. Any way we can get this merged in an upcoming release?

@TheDSCPL

TheDSCPL commented Feb 4, 2025

Copy link
Copy Markdown

@aaronp24 Please, merge... We've been waiting for this since 2018 😿

@liff

liff commented May 4, 2026

Copy link
Copy Markdown
Author

Commenting in hopes to get this re-indexed, because this seems to have disappeared from the list of open PRs.

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

3 participants