Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Freedesktop.org
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Base Directory Specification === {{see also|Filesystem Hierarchy Standard}} ''XDG Base Directory Specification'' (XDG BDS) introduces a range of variables where user-specific files used by programs should be found.<ref name=":0">[https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html XDG Base Directory Specification], freedesktop.org, accessed: 2021-05-15.</ref> Many tools and applications utilize these variables by default.<ref>{{Cite web|title=XDG Base Directory - ArchWiki|url=https://wiki.archlinux.org/title/XDG_Base_Directory|access-date=2021-10-08|website=wiki.archlinux.org}}</ref> ==== User directories ==== Besides the variables mentioned below, XDG BDS also specifies that users' local binary files may be installed into {{code| $HOME/.local/bin}}. Systems compliant with the spec are expected to make this directory available in their [[Command-line interface|CLI]]'s {{code|PATH}} environment variable.<ref name=":0" /> ;{{Code|XDG_DATA_HOME}} : For user application's own data files : Default to {{Code|$HOME/.local/share}} ;{{Code|XDG_CONFIG_HOME}} : For user's app configuration files : Default to {{Code|$HOME/.config}} ;{{Code|XDG_STATE_HOME}} : For user-specific app session data, which should be stored for future reuse : Default to {{Code|$HOME/.local/state}} : May include logs, recently used files, application-specific information (e.g. window layout, views, opened files, undo history, etc.), akin to session data that should be stored by app by request of system session manager, like [[X session manager]] ;{{Code|XDG_CACHE_HOME}} : For user-specific apps cache files : Default to {{code|$HOME/.cache}} ;{{Code|XDG_RUNTIME_DIR}} : For user-specific app runtime files like sockets which must not survive reboot and full logout/login cycles ==== System directories ==== ;{{Code|XDG_DATA_DIRS}} : Colon-separated list of preference-ordered paths to search for data files in : Default to {{Code|/usr/local/share/:/usr/share/}} ;{{Code|XDG_CONFIG_DIRS}} : The same as above but for config files : Default to {{Code|/etc/xdg/}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)