4 ms·
If anyone would like to actually force the non-compliant applications to do the thing correctly, then xdg-ninja is your friend [0]. The script looks at all the
by doodlesdev 4y ago
If anyone would like to actually force the non-compliant applications to do the thing correctly, then xdg-ninja is your friend [0]. The script looks at all the dotfiles in the home folder and tells you what environment variables you have to set to make them follow XDG base directory specifications, in the cases where that's not possible it will show you the related GitHub issue or similar bug tracking option with the problem.
My current dotfiles [1] already have a lot of these and they mostly just work. Once in a while an application won't respect it completely, and so instead of having a mess with xdg + whatever the dev though was cooler I just let the application do it's thing so at least is somewhat predictable.
[0]: https://github.com/b3nj5m1n/xdg-ninja https://github.com/b3nj5m1n/xdg-ninja
[1]: https://github.com/DoodlesEpic/Dotfiles/blob/main/.profile https://github.com/DoodlesEpic/Dotfiles/blob/main/.profile
- thejosh 4y agoThis is fantastic! Thanks for the share. Reminds me of lostfiles for Arch. https://man.archlinux.org/man/community/lostfiles/lostfiles.1.en https://man.archlinux.org/man/community/lostfiles/lostfiles.... Was thinking this would be a useful tool, same as a tool that would show you where environment variables are being set, and which ones override what.
- gdprrrr 4y agoIt also has a table of applications docunented https://wiki.archlinux.org/title/XDG_Base_Directory https://wiki.archlinux.org/title/XDG_Base_Directory
- evanpurkhiser 4y agoI have a similar list in my bashrc [0]. I didn't know about xdg-ninja though, thank you! [0]: https://github.com/evanpurkhiser/dots-personal/blob/main/base/bash/environment https://github.com/evanpurkhiser/dots-personal/blob/main/bas...
- klntsky 4y agoDoes it use a centralized database of all known software?
- shakna 4y agoThe information comes from Arch Wiki's list of everything known [0]. [0] https://wiki.archlinux.org/title/XDG_Base_Directory https://wiki.archlinux.org/title/XDG_Base_Directory