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

Support the XDG Base Directory Specification #30

Open
Soapux opened this issue Aug 21, 2018 · 4 comments · May be fixed by #107
Open

Support the XDG Base Directory Specification #30

Soapux opened this issue Aug 21, 2018 · 4 comments · May be fixed by #107

Comments

@Soapux
Copy link

Soapux commented Aug 21, 2018

https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Settings are currently stored at $HOME/.nvidia-settings-rc. Following the spec allows for a more organized home directory which makes doing backups easier. The new default location would be $XDG_CONFIG_HOME if set or default to $HOME/.config. Something like $XDG_CONFIG_HOME/nvidia/settings would work.

This doesn't have to do with nvidia-settings, but it would also be nice if the nvidia drivers followed the spec too. They currently use $HOME/.nv/GLCache for data that could be moved to probably $XDG_CACHE_HOME.

@tiritto
Copy link

tiritto commented Jul 4, 2020

Two years later, this issue still has not been resolved. Please, comply with the XDG standards. It's quite simple in implementation and yet it's such a great QoL improvement.

@zjeffer
Copy link

zjeffer commented Sep 24, 2020

+1

A temporary workaround is to launch nvidia-settings with nvidia-settings --config="$XDG_CONFIG_HOME"/nvidia/settings (you can set an alias to do this). Also make sure the $XDG_CONFIG_HOME"/nvidia/ folder exists

But Nvidia should just comply with XDG standards.

@ifohancroft
Copy link

I'd also love for this to be implemented.

liff added a commit to liff/nvidia-settings that referenced this issue 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 NVIDIA#30 (at least partly?).
liff added a commit to liff/nvidia-settings that referenced this issue 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 NVIDIA#30.
@liff liff linked a pull request Sep 12, 2024 that will close this issue
@liff
Copy link

liff commented Sep 12, 2024

#107 has a patch.

liff added a commit to liff/nvidia-settings that referenced this issue Sep 13, 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 NVIDIA#30.
liff added a commit to liff/nvidia-settings that referenced this issue Sep 13, 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 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 a pull request may close this issue.

5 participants