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

[REQUEST] Respect XDG Base Dir Specification Environment Variables #302

Open
Neurognostic opened this issue May 4, 2021 · 0 comments · May be fixed by #350
Open

[REQUEST] Respect XDG Base Dir Specification Environment Variables #302

Neurognostic opened this issue May 4, 2021 · 0 comments · May be fixed by #350
Assignees
Labels
enhancement New feature or request

Comments

@Neurognostic
Copy link

Neurognostic commented May 4, 2021

Is your feature request related to a problem? Please describe.
bpytop currently does not respect the setting of the XDG Base Directory Specification environment variables.

Additionally, bpytop does not even provide its own environment variable or command line flag to change the configuration directory. So no workaround through aliases or other environment variables is possible without editing the source code.

Describe the solution you'd like
Specifically, the configuration directory should check for the XDG_CONFIG_HOME environment variable and use it if it exists and is set to a valid directory path, otherwise use a default.

Describe alternatives you've considered
Other applications that do not support the XDG Base Directory Specification almost always have some method to force it to respect the XDG spec; for example, using aliases with a command line argument that points to a different configuration directory or a configuration directory environment variable that users can assign to the value of $XDG_CONFIG_HOME.

Additional context
There are other environment variables in the XDG Base Directory Specification that bpytop should try to respect when reading or writing files other than config files, such as when writing log files.

@Neurognostic Neurognostic added the enhancement New feature or request label May 4, 2021
@baodrate baodrate linked a pull request Sep 8, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants