American_Jesus@lemm.ee to Linux@lemmy.ml · 1 year agoDotfiles matter! Please stop dumping files in users’ $HOME directories.dotfiles-matter.clickexternal-linkmessage-square155fedilinkarrow-up1664arrow-down19cross-posted to: programming@programming.dev
arrow-up1655arrow-down1external-linkDotfiles matter! Please stop dumping files in users’ $HOME directories.dotfiles-matter.clickAmerican_Jesus@lemm.ee to Linux@lemmy.ml · 1 year agomessage-square155fedilinkcross-posted to: programming@programming.dev
minus-squareNate Cox@programming.devlinkfedilinkEnglisharrow-up33·1 year agoThe rust library mentioned there doesn’t support system install paths for windows or macOS, it only uses XDG. I recommend the directories crate which properly supports Linux, Mac, and Windows. https://github.com/dirs-dev/directories-rs
minus-square6xpipe_@lemmy.worldlinkfedilinkarrow-up10·1 year agoSame with Python. I use a combination of the platformdirs and xdg libraries.
minus-squarepitbuster@lemmy.mllinkfedilinkarrow-up4·1 year agoThanks I was going to look for one with multi OS support :)
The rust library mentioned there doesn’t support system install paths for windows or macOS, it only uses XDG. I recommend the
directories
crate which properly supports Linux, Mac, and Windows.https://github.com/dirs-dev/directories-rs
Same with Python. I use a combination of the
platformdirs
andxdg
libraries.Thanks I was going to look for one with multi OS support :)