American_Jesus@lemm.ee to Linux@lemmy.ml · 1 年前Dotfiles matter! Please stop dumping files in users’ $HOME directories.dotfiles-matter.clickexternal-linkmessage-square55fedilinkarrow-up1103arrow-down12cross-posted to: programming@programming.dev
arrow-up1101arrow-down1external-linkDotfiles matter! Please stop dumping files in users’ $HOME directories.dotfiles-matter.clickAmerican_Jesus@lemm.ee to Linux@lemmy.ml · 1 年前message-square55fedilinkcross-posted to: programming@programming.dev
minus-squareMagnetar@feddit.delinkfedilinkarrow-up2·1 年前W should make a .dotfiles directory for them.
minus-squarelloram239@feddit.delinkfedilinkarrow-up1·1 年前export XDG_CONFIG_HOME=/home/juser/.dotfiles
minus-squarelloram239@feddit.delinkfedilinkarrow-up4·1 年前Yes, but OP wanted .dotfiles. Nice thing with XDG is that you can change all that. The user directories Desktop, Downloads, etc. can be changed as well: https://wiki.archlinux.org/title/XDG_user_directories
minus-squareinetknght@lemmy.mllinkfedilinkarrow-up6·1 年前…that’s assuming that apps actually respect that environment variable. The problem is that if the app is writing to ${HOME} then they’re already not following XDG spec.
W should make a .dotfiles directory for them.
export XDG_CONFIG_HOME=/home/juser/.dotfiles
Well, isn’t it
.config
by default?Yes, but OP wanted
.dotfiles
. Nice thing with XDG is that you can change all that.The user directories Desktop, Downloads, etc. can be changed as well: https://wiki.archlinux.org/title/XDG_user_directories
…that’s assuming that apps actually respect that environment variable. The problem is that if the app is writing to ${HOME} then they’re already not following XDG spec.