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

Respect the XDG base directory specification’s environment variables #3232

Closed
astralchan opened this issue Jan 22, 2024 · 2 comments
Closed

Comments

@astralchan
Copy link

astralchan commented Jan 22, 2024

Description

Duplicate of 723...

Currently, renderdoc always makes ~/.renderdoc. The XDG Base Directory Speficiation lays out an environment for unix desktop apps. While there are several not implemented, not respecting XDG_CONFIG_HOME, especially if you just make a directory in the base home directory, tends to clutter a user's home directory.

A simple C implementation could look like:

char *configPath = getenv("XDG_CONFIG_HOME");
if (configPath == NULL) {
    configPath = getenv("HOME");
    strcat(configPath, "/.config");
}
strcat(configPath, "/renderdoc");

Environment

  • RenderDoc version: 1.21
  • Operating System: Void Linux
  • Graphics API: OpenGL
@baldurk
Copy link
Owner

baldurk commented Jan 22, 2024

This has been discussed before and from previous conversations with other people who have asked for XDG support there is no compromise between what I'm willing to implement and what they want that is acceptable to both sides, so there is no plan to ever support XDG configs.

#723 was specifically about interop with the vulkan loader where the layer was required to go into the location that matches what the loader was looking for.

@baldurk baldurk closed this as completed Jan 22, 2024
@astralchan
Copy link
Author

astralchan commented Jan 22, 2024

This has been discussed before and from previous conversations with other people who have asked for XDG support there is no compromise between what I'm willing to implement and what they want that is acceptable to both sides, so there is no plan to ever support XDG configs.

#723 was specifically about interop with the vulkan loader where the layer was required to go into the location that matches what the loader was looking for.

723 was about XDG_DATA_HOME

Even if XDG_CONFIG_HOME isn't read, redirecting the default location to $HOME/.config/renderdoc could be nice.

1741
Linked relevant PR for additional context.

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

No branches or pull requests

2 participants