I would like to ask that consideration be made in respecting the FreeDesktop's XDG desktop directory specification when it comes to the folder containing the configuration files and such for at least Linux environments.
Right now sourcegit defaults to creating its files into the ~/.sourcegit directory of the user using the program, and it would be nice if the application first checked if the XDG_CONFIG_HOME is a valid absolute path, or XDG_CONFIG_DIRS contains valid absolute paths, and create this directory there instead. This would often default to ~/.config/sourcegit for all files that currently reside in the directory. Though if a more proper implementation is desired, if the avatars folder is intended to be a "cache" of those avatar icons, then this might better reside in XDG_CACHE_HOME which would often default to ~/.cache/sourcegit and the process.lock file could reside in XDG_STATE_HOME which normally resides in ~/.local/state/sourcegit ... These suggestions however shouldn't be hard-coded to these directories, but rather follow the guidance provided by the FreeDesktop specification.
While there are some stubborn outlier programs that for one reason or another can't/won't respect this specification, it would be nice if sourcegit were capable of joining the ones that do, as home directory "clutter" is a valid concern, and providing greater flexibility of where and how these kinds of files are stored, provides a nice benefit to all. Especially when a portable option exists for windows/appimage versions.
I would like to ask that consideration be made in respecting the FreeDesktop's XDG desktop directory specification when it comes to the folder containing the configuration files and such for at least Linux environments.
Right now sourcegit defaults to creating its files into the
~/.sourcegitdirectory of the user using the program, and it would be nice if the application first checked if theXDG_CONFIG_HOMEis a valid absolute path, orXDG_CONFIG_DIRScontains valid absolute paths, and create this directory there instead. This would often default to~/.config/sourcegitfor all files that currently reside in the directory. Though if a more proper implementation is desired, if the avatars folder is intended to be a "cache" of those avatar icons, then this might better reside inXDG_CACHE_HOMEwhich would often default to~/.cache/sourcegitand the process.lock file could reside inXDG_STATE_HOMEwhich normally resides in~/.local/state/sourcegit... These suggestions however shouldn't be hard-coded to these directories, but rather follow the guidance provided by the FreeDesktop specification.While there are some stubborn outlier programs that for one reason or another can't/won't respect this specification, it would be nice if sourcegit were capable of joining the ones that do, as home directory "clutter" is a valid concern, and providing greater flexibility of where and how these kinds of files are stored, provides a nice benefit to all. Especially when a portable option exists for windows/appimage versions.