Include user-dirs.dirs in .profile, and use capitalised versions of the set names.

We already use auto-capitalisation in the shell, so we actually benefit
from having capitalised names, considering it reduces headaches induced
by hardcoded paths. Also, now that we've accepted that the home
directory will be a mess, it will aid standing out.

Also source the file in .profile, because it should've been from the
start.
This commit is contained in:
2026-01-13 12:46:36 +01:00
parent dd604e6a39
commit 4f315f2af8
4 changed files with 14 additions and 11 deletions

View File

@@ -4,13 +4,13 @@
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR="$HOME/desktop"
XDG_DOWNLOAD_DIR="$HOME/downloads"
XDG_TEMPLATES_DIR="$HOME/templates"
XDG_PUBLICSHARE_DIR="$HOME/public"
XDG_DOCUMENTS_DIR="$HOME/documents"
XDG_MUSIC_DIR="$HOME/music"
XDG_PICTURES_DIR="$HOME/photos"
XDG_VIDEOS_DIR="$HOME/videos"
XDG_PUBLIC_DIR="$HOME/public"
#
export XDG_PICTURES_DIR="$HOME/Photos"
export XDG_DESKTOP_DIR="$HOME/Desktop"
export XDG_DOWNLOAD_DIR="$HOME/Downloads"
export XDG_TEMPLATES_DIR="$HOME/Templates"
export XDG_PUBLICSHARE_DIR="$HOME/Public"
export XDG_DOCUMENTS_DIR="$HOME/Documents"
export XDG_MUSIC_DIR="$HOME/Music"
export XDG_PICTURES_DIR="$HOME/Pictures"
export XDG_VIDEOS_DIR="$HOME/Videos"