Req [Linux] Use $XDG_CONFIG_HOME instead of ~/.kodi
#1
Hi,

as most Linux users probably know, there are many dot-folders in your home directory. Examples are .ssh, .kodi, .mozilla and so on. Many developers create a custom dot-folder for their application to store meta-data, user-data, config files, temp files and more. This is fine if you only install a few applications but becomes bothersome the more apps do this.

That's why (many years ago) FreeDesktop created the base directory specification: https://specifications.freedesktop.org/b...atest.html
The environment variable $XDG_CONFIG_HOME defines where applications should put their application's config files.  $XDG_DATA_HOME is where user data should be stored.
Code:
$XDG_DATA_HOME defines the base directory relative to which user specific data files should be stored. If $XDG_DATA_HOME is either not set or empty, a default equal to $HOME/.local/share should be used.

$XDG_CONFIG_HOME defines the base directory relative to which user specific configuration files should be stored. If $XDG_CONFIG_HOME is either not set or empty, a default equal to $HOME/.config should be used.

I'm not alone. Just read https://www.reddit.com/r/linux/comments/...directory/ for example.
The ArchLinux wiki is great read as well: https://wiki.archlinux.org/index.php/XDG_Base_Directory
Qt applications use these directories as well.

Please consider to use this directory structure. :-)

Regards,
Andre
Reply

Logout Mark Read Team Forum Stats Members Help
[Linux] Use $XDG_CONFIG_HOME instead of ~/.kodi0