XDG_CONFIG_HOME as ~/etc - Other *nix-like OSes & POSIX related

Users browsing this thread: 1 Guest(s)
adi
Members
(02-09-2023, 09:39 AM)venam Wrote: but then it'll be a chicken and egg problem if you want this one defined too.

I don't believe user-dirs.dirs is ment to handle $XDG_CONFIG_HOME, you set that as an environment variable in your ~/.profile. My $XDG_CONFIG_HOME/user.dirs.dirs, after running xdg-user-dirs-update --set DOWNLOAD ~/dl is:

Code:
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# 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_DOWNLOAD_DIR="$HOME/dl"
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

(02-09-2023, 09:39 AM)venam Wrote: Some people had similar ideas in this thread but it was more generic.

My $HOME is pretty similar:

Code:
~ $ tree -L 1
.
|-- Downloads
|-- bak
|-- bin
|-- dl
|-- docs
|-- etc
|-- go
|-- htdocs -> /var/www/home/adi/htdocs/
|-- include
|-- irc
|-- lib
|-- local
|-- mail
|-- man
|-- mnt
|-- pkg
|-- share
|-- src
|-- tmp
`-- var

19 directories, 1 file

I'm in the process of renaming ~/Downloads to ~/dl


Messages In This Thread
XDG_CONFIG_HOME as ~/etc - by adi - 02-09-2023, 08:25 AM
RE: XDG_CONFIG_HOME as ~/etc - by venam - 02-09-2023, 09:39 AM
RE: XDG_CONFIG_HOME as ~/etc - by adi - 02-09-2023, 01:33 PM
RE: XDG_CONFIG_HOME as ~/etc - by jkl - 02-09-2023, 04:03 PM
RE: XDG_CONFIG_HOME as ~/etc - by adi - 03-09-2023, 04:04 AM