You must log in or register to comment.
but please don’t hard-code
~/.configor$HOME/.config. Use theXDG_CONFIG_HOMEenvironment variable, with$HOME/.configas a fallback if it’s not set.Many programming languages have a cross-platform implementation of this built in to their standard library. C# has
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)which uses XDG_CONFIG_HOME on Linux, local AppData on Windows, and whatever is the correct thing on MacOS (not very familiar with how things work on MacOS)Attention electron developers: under no circumstances do I want your entire app in .config.
You feel the curling of the monkey’s paw; the entire app is now in ~/.local/AppName



