Skip Navigation

All programs should tell you where they store config files

I wholeheartedly agree with this blog post. I believe someone on here yesterday was asking about config file locations and setting them manually. This is in the same vein. I can't tell you how many times a command line method for discovering the location of a config file would have saved me 30 minutes of googling.

98 comments
  • @wetlettuce
    Should be /etc or /usr/local/etc or /opt/etc or /opt/vendor/product/etc or /etc.

    With some exceptions for historic compatibility (like /.bashrc)

    The man page should specify where.

    • The exceptions should only apply for cases where XDG is not available. In any other case, the appropriate XDG directoy configured by the user should be used first.

    • For user-specific config files, aren't they all supposed to be in ~/.config these days? I've never heard of software using ~/etc.

  • And even if the program doesn't use config files (like various gnome, xfce and other programs), it should be possible to programmatically export and import full or partial configurations.

  • Seriously, I've lost so muuuuch time just trying to find where some random program decides to store its config files. It sometimes takes me more time than actually "doing the config"

  • I think this is a drawback of not having more specialized communities in beehaw yet - I'm not sure if this advice is very niche advice or if it has some value in general awareness for the layperson?

    Normally I'd look up and see "r/DevChat" or some such distinct community name and have immediate context of, "that's not really for you to figure out". But this is essentially "r/technology" so I'm left wondering if I personally can take anything of value from this post.

    Not a criticism or complaint, just an observation.

98 comments