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 to False, xdg-user-dirs-update will 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 as UTF-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-wide user-dirs.conf file is located in this directory. the default is /etc/xdg.
  • XDG_CONFIG_HOME โ€” the per-user user-dirs.conf file 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