Add a way to force usage of ogranisation name on Linux
Currently, on Linux, the organisation name is ignored, and e.g. ProjectDirs::config_dir() will return simply ~/.config/appname. This may be enough for applications with some very unique names, but when using some more generic words, can lead to conflicts.
I'd like a way to force the lib to use the organisation name on Linux, so I'd get e.g ~/.config/suve/appname instead of just ~/.config/appname.
Hi @suve, are there examples of existing applications doing this?
While I admit I failed to find FLOSS, there's quite a few proprietary programs doing this, e.g.:
- Jet Brains IDEs, e.g.
~/.config/JetBrains/CLion2020.2. - Microsoft Teams puts its data in
~/.config/Microsoft/Microsoft Teams. - Aspyr's Linux ports of Steam games, e.g.
~/.local/share/Aspyr/Sid Meier's Civilisation 5 - Feral Interactive's ports of Steam games, e.g
~/.local/share/feral-interactive/XCOM
Oh, right. How could I forget. The SDL_GetPrefPath() function in the SDL 2.x library does this, so most games based on SDL2 inherit this behaviour. (Source code)
@suve To be honest, these examples all look like terrible porting jobs (i. e. simply copying Microsoft conventions to a platform that isn't Windows) – exactly the outcomes this library is intended to prevent.