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:

  • DESKTOP
  • DOWNLOAD
  • TEMPLATES
  • PUBLICSHARE
  • DOCUMENTS
  • MUSIC
  • PICTURES
  • VIDEOS

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 โ€” the user-dirs.defaults file 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