NVIDIA / NVIDIA/nvidia-settings

Support the XDG Base Directory Specification

Open
#30 5 comments 29 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
345
Forks
92
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked XDG Base Directory Specification and locating the nvidia-settings code that loads and saves $HOME/.nvidia-settings-rc. Update the default configuration location to use XDG_CONFIG_HOME or $HOME/.config, while considering the separate driver cache request independently. Done means settings continue to load and save correctly at the new path.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.