by mschuster91 · 5mo ago · 0 comments
That desperately needs something like the Public Suffix List [1] - a community-managed list where authors of software can blacklist directories containing sensitive files or such files directly for all browsers implementing this feature.
If I were to design such a list, it would include ~/.ssh, ~/.aws, ~/.config, ~/Library, ~/.{ba,z}sh{rc,_profile,_history}, ~/.m2, ~/.npm, ~/.npmrc, ~/.profile at the very least. Because users will get phished.
My Nix Home Manager settings for XDG directories:
xdg.userDirs = {
enable = true;
createDirectories = true;
desktop = "${config.home.homeDirectory}/var/desktop";
documents = "${config.home.homeDirectory}/opt/docs";
download = "${config.home.homeDirectory}/var/download";
music = "${config.home.homeDirectory}/opt/art/music";
pictures = "${config.home.homeDirectory}/opt/art/visual/picture";
publicShare = "${config.home.homeDirectory}/var/public";
videos = "${config.home.homeDirectory}/opt/art/visual/video";
templates = "${config.home.homeDirectory}/opt/templates";
};~/Pictures and ~/.ssh are as far apart as they can be while staying in the user's home directory. I guess you could stick stuff in... /var or something, but that seems worse overall.