baldurk/renderdoc

Respect the XDG base directory specification’s environment variables

Closed this issue · 2 comments

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

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.

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.