freedesktop.org规范中定义的环境变量,用于存放配置文件数据缓存等
Posted 王万林 Ben
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了freedesktop.org规范中定义的环境变量,用于存放配置文件数据缓存等相关的知识,希望对你有一定的参考价值。
freedesktop.org规范中定义的环境变量,用于存放配置文件、数据、缓存等
变量
$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.
$XDG_STATE_HOME defines the base directory relative to which user-specific state files should be stored. If $XDG_STATE_HOME is either not set or empty, a default equal to $HOME/.local/state should be used.
参考资料
https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html
以上是关于freedesktop.org规范中定义的环境变量,用于存放配置文件数据缓存等的主要内容,如果未能解决你的问题,请参考以下文章
从 DBUS org.freedesktop.dbus 和 java 获取数据 - org.freedesktop.DBus$Error$UnknownMethod: 方法不存在