USER-DIRS.CONF(5)
๐ USER-DIRS.CONF(5) ๐
okay bestie, so this is a file formats man page โ the manual name is literally USER-DIRS.CONF and the whole thing is lowkey about one little config file that runs your whole XDG folder situation. let's get into it ๐
โจ NAME โจ
user-dirs.conf โ the configuration file for xdg-user-dirs-update, no cap
๐ธ DESCRIPTION ๐ธ
so the /etc/xdg/user-dirs.conf file is a plain text file, and what it does is control the behavior of the xdg-user-dirs-update command. that's it. that's the whole job. ๐ซถ
and like, users can have their own ~/.config/user-dirs.conf file too, which overrides the system-wide configuration. so your personal one wins, always, main character energy ๐
here are the keys it recognises:
enabled=booleanโ when you set this toFalse,xdg-user-dirs-updatewill not change the XDG user dirs configuration. like, it just sits there and does nothing. iconic honestly.filename_encoding=encodingโ this sets the filename encoding to use. the encoding can be an explicit encoding name, such asUTF-8, or"locale", which means the encoding of the users locale will be used. iykyk ๐
and the part you can't forget: lines beginning with a # character are ignored. comments, bestie. use them. ๐
๐ฆ ENVIRONMENT ๐ฆ
XDG_CONFIG_DIRSโ the system-wideuser-dirs.conffile is located in this directory. the default is/etc/xdg.XDG_CONFIG_HOMEโ the per-useruser-dirs.conffile is located in this directory. the default is$HOME/.config.
โญ SEE ALSO โญ
xdg-user-dirs-update(1) โ go read that one too, it's giving sibling energy ๐
๐ AUTHOR ๐
Alexander Larsson <alexl@redhat.com> Developer
and that's the whole page, bestie!! go forth and configure your dirs โจ
this has been the XDG edition, dated 04/08/2026, of USER-DIRS.CONF section 5 โ mwah, love u, bye ๐
๐ฆ 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