USER-DIRS.DEFAULT(5)
๐ธ USER-DIRS.DEFAULT(5) ๐ธ
ok so real talk, this is the manual page for user-dirs.defaults โ yes bestie, the default settings for XDG user dirs. we're in section 5 (file formats, iykyk) and honestly? it's a tiny little file that does a lot. let's get into it ๐
โจ NAME โจ
user-dirs.defaults โ the default settings for XDG user dirs, periodt ๐
๐ DESCRIPTION ๐
the /etc/xdg/user-dirs.defaults file is a text file (plain text, no fancy business) and it holds the default values for the XDG user dirs. those are the ones actually used by the xdg-user-dirs-update command. so like, this file is the blueprint, and that command is the one who goes and makes it happen. ๐ซถ
inside, it's just lines that look like this:
NAME=VALUE
and these are the names it recognises, bestie โ memorize the list, it's not long:
DESKTOPDOWNLOADTEMPLATESPUBLICSHAREDOCUMENTSMUSICPICTURESVIDEOS
ok and here's the important bit about the values ๐ โ the values are relative pathnames from the home directory</>, and they get translated on a per-path-element basis into the user's locale. cute right? that's how your Downloads folder can be like Tรฉlรฉchargements for someone else. slay, localization. ๐
oh and also โ any line that begins with a # character is ignored. that's your comment line, your little diary entry, your "not me writing notes in a config file" moment. ๐
๐ฆ ENVIRONMENT ๐ฆ
XDG_CONFIG_DIRSโ theuser-dirs.defaultsfile lives in this directory. the default is/etc/xdg. so if you ever moved it somewhere else (iconic of you), this is how the system finds it. โจ
โญ SEE ALSO โญ
xdg-user-dirs-update(1)โ the actual command that reads all this and does the work. go say hi to it, it's the main character here. ๐
๐ AUTHOR ๐
Alexander Larsson <alexl@redhat.com> โ Developer ๐
like, thank you for the directories king, we appreciate you fr fr ๐
and that's the whole vibe check, no cap. this page came to you from XDG, dated 04/08/2026 โ go set up your folders, bestie, you got this ๐ โจ๐
๐ฆ where this page comes from
- arch rolling: xdg-user-dirs 0.20-1 ยท GPL-2.0-or-later
- nixpkgs unstable: xdg-user-dirs 0.20
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms