News for hackers. Stuff that matters.
Re:Dotfile madness by fxfan on Saturday February 02, 2019 @11:40AM (#19063912)
To name and shame some culprits (the one's who have shame, I won't name java because I won't expect them to care)

1) Mozilla

2) Gnome

3) Gimp

4) GPG

5) Thunderbird (Why is there a sep directory and not under .mozilla)

6) mplayer

I guess one reason why this occurs is that it's easier for to be carelessly cross-platform this way. Except you'd expect better from mozilla, specially because they store Windows stuff very well inside %localappdata%

Re:Dotfile madness by kondor6c on Saturday February 02, 2019 @11:50AM (#19063990)
Why not _shame_ openssh? Or vim? Or emacs? I would advise not calling for shame on any of these projects because they have a pattern to support that has been in place longer than the XDG standard has been in place. You can change gnupg's home dir, but it would break a lot of currently functional setups if it just moved.
Re:Dotfile madness by yjftsjthsd-h on Saturday February 02, 2019 @12:25PM (#19064245)
I'm personally willing to give SSH a partial pass because I feel like having it separate makes it easier to reason about from a security perspective (this would also apply to GPG).

For vim... yeah, AFAIK "vim" does that, but neovim uses ~/.config/nvim :)

And to your general point... yes, many of these programs predate XDG. I happily support keeping them backwards compatible (which should be easy; checking multiple places in order is a time-honored tradition). But I honestly don't think this was a good idea even decades ago, and "we've always done it this way" is a terrible reason to not even support a newer, cleaner approach. Again, there's no reason to break existing systems; just support an additional location, probably make it the default, and everyone will be happy.

Re:Dotfile madness by fxfan on Saturday February 02, 2019 @11:53AM (#19064006)
I guess I was being nice to old programs. Also, these are programs that a lot of external tools interact with. Nobody cares about where firefox stores its data- except the now almost dead flash plugin.
Re:Dotfile madness by kondor6c on Saturday February 02, 2019 @12:00PM (#19064060)
Yes, very good point I do think that the older programs/projects have to plan a migration which really can be challenging. I think there are some that might care for example selenium might have the mozilla directory as a default and some might hard code it. The orchestration of such a change is difficult because I don't think too many people read changelog or really keep up with upstream modifications.

Good thoughts

Re:Dotfile madness by gnomewascool on Saturday February 02, 2019 @12:04PM (#19064103)
> You can change gnupg's home dir, but it would break a lot of currently functional setups if it just moved.

You can just change the default: if .gnupg exists, write everything to it. If not, write to $XDG_CONFIG_HOME/gnupg/ and $XDG_DATA_HOME/gnupg/ as appropriate (deciding how to carry out the split is not obvious, but can be done).

I agree, though, that calling it "shaming" is neither justified, nor useful.

Re:Dotfile madness by afiori on Saturday February 02, 2019 @12:33PM (#19064295)
> (deciding how to carry out the split is not obvious, but can be done).

For this reason I like better the windows distinction, that (if I understand in correctly) distinguishes between machine-dependent files and machine independent files. for something like gnupg I would not really say what is data and what is configuration

Re:Dotfile madness by pseudalopex on Saturday February 02, 2019 @03:56PM (#19065665)
It can be just as hard to say what should be local and what should be roaming.
Re:Dotfile madness by fxfan on Sunday February 03, 2019 @02:17AM (#19068272)
Is that what appdata and appdataroaming are?
Re:Dotfile madness by toflon on Saturday February 02, 2019 @12:58PM (#19064489)
There's a pretty good list on the Arch Wiki of hardcoded config locations.

https://wiki.archlinux.org/index.php/XDG_Base_Directory#Hard...

Re:Dotfile madness by sandov on Saturday February 02, 2019 @12:35PM (#19064317)
Speaking of Windows, their situation is worse. I remember installing a couple of games and suddenly my "My Documents" folder had "EA", "EA Games", "Electronic arts", "Rockstar games" folders.
Re:Dotfile madness by MereInterest on Saturday February 02, 2019 @05:47PM (#19066283)
Don't forget when EA couldn't even spell their own name correctly, and made a folder named "Electrontic Arts".
Re:Dotfile madness by georgeecollins on Saturday February 02, 2019 @12:51PM (#19064437)
Games do that by design so that they can be cleanly uninstalled without removing saved games and preferences. Also you should be able to backup your documents folder and not your programs folder and be safe. A good uninstaller should ask if you want to save them and remove them if you don’t.

I am not saying it is the best way. But I don’t think it is malicious or lazy.

Re:Dotfile madness by amaccuish on Saturday February 02, 2019 @12:54PM (#19064459)
There is literally a folder in every Windows profile (Vista onwards) called "Saved Games", it should all go there.
Re:Dotfile madness by Wowfunhappy on Saturday February 02, 2019 @03:40PM (#19065565)
^ This. And the amazing thing is it's probably the least common place for games to put save data. I think I've played exactly one game that ever used it.
Re:Dotfile madness by dmitrygr on Saturday February 02, 2019 @04:06PM (#19065710)
Most likely because the proper API to get the path to that folder was vista-or-later and games preferred to be backward compatible
Re:Dotfile madness by Wowfunhappy on Saturday February 02, 2019 @05:03PM (#19066017)
Okay, but now nothing supports XP, so there's no excuse!
Re:Dotfile madness by rovr138 on Saturday February 02, 2019 @04:17PM (#19065766)
Multiple users too. Where would you store all that if not inside the user directory. But Saved Games is definitely a better location.
Re:Dotfile madness by mr_toad on Saturday February 02, 2019 @06:23PM (#19066534)
It’s probably because Windows makes the actual home folder somewhat difficult for the average non-technical user to see. They effectively made the My Documents folder the home folder for most of their userbase.
Re:Dotfile madness by flurdy on Sunday February 03, 2019 @06:07AM (#19068955)
Which is why back when I did have a Windows partition, I always had a ~/MyDocs folder that worked as my actual "My Documents" folder.
Re:Dotfile madness by boreq on Saturday February 02, 2019 @11:42AM (#19063923)
Which is especially sad as supporting the standard described in my post is a non breaking change if you are still going to read the old location of the configuration and data files as well.
Re:Dotfile madness by akerro on Saturday February 02, 2019 @03:40PM (#19065557)
cmake, conky, dlv, electron, electrum, gnome, gnutls, gradle, idea, ipfs, kde, maven, npm, ohmyzsh, sonar, steam, thunderbird, veracrypt, vim, visualvm, vscode, yarn.

and now the most fun:

bash, zsh, git, gtk, man, wget, xorg

Re:Dotfile madness by tomjakubowski on Saturday February 02, 2019 @08:27PM (#19067162)
git has supported ~/.config/git/config for a very long time. You don't have to use ~/.gitconfig.
Re:Dotfile madness by krferriter on Sunday February 03, 2019 @12:16AM (#19068013)
I'd tend to give a pass to things like shells (bash, zsh) and ssh and gpg. Not the other ones though.
Re:Dotfile madness by TheAceOfHearts on Sunday February 03, 2019 @02:08AM (#19068243)
They shouldn't get a pass. fish [0] is also a shell and it places all its configs sanely in `~/.config/fish/`.

[0] https://fishshell.com/

Re:Dotfile madness by GregMartinez on Saturday February 02, 2019 @09:04PM (#19067310)
dlv has an open PR to move the config from $HOME/.dlv to $XDG_CONFIG_HOME/dlv so that one should be fixed soon.
Re:Dotfile madness by quotemstr on Saturday February 02, 2019 @03:41PM (#19065574)
I don't consider any of these programs shameful. The linked article is a bad take, and there's nothing wrong with the traditional unix approach.