Live data from Hacker News

Dotfile madness

0x46.net

11–20 of 534 posts

Re: Dotfile madness

#11

On the one hand this is annoying, on the other it’s great that you can just backup your home dir and have all your files and settings in one go. Also this annoyance is easy to solve, just make one dir in home (my is called after my name) and put all your own files in there.

Yep! This is my favorite trick. I just make home /home/$USER/.home and have my she'll rc start me in /home/$USER - works a treat!

Re: Dotfile madness

#12

On the one hand this is annoying, on the other it’s great that you can just backup your home dir and have all your files and settings in one go. Also this annoyance is easy to solve, just make one dir in home (my is called after my name) and put all your own files in there.

So you're running everything under `/home/Epskampie/Epskampie` ?

Re: Dotfile madness

#13
post #3

Why do programmers do this? What thought process leads to someone thinking this is a good idea?

It is safe. Everybody does it, there is .gitconfig, .ssh etc so one more would not hurt.

Until there is 500 dotfiles, some long forgotten.

Re: Dotfile madness

#14

One thing I’ve been thinking about is that it would be nice to tag files with the program that created them. Aside from the clutter in my home directory, I have a lot of files that I have to guess as to where they originated from based on metadata like modification timestamps or permissions, but it would be nice to see something like “~/.config was created by some-tool”.

That is the exact problem that the standard I talk about was designed to solve (apart from the clutter in the home directory).

Re: Dotfile madness

#15
post #3

Why do programmers do this? What thought process leads to someone thinking this is a good idea?

In a way a users settings are ‘personal files’, so it can be argued they go in home.

Except isn't there a specific directory for such things now in $XDG_CONFIG_HOME? Or is this not standard at all? Either way, $HOME/.config makes perfect sense to me!

Re: Dotfile madness

#16
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

#17

On the one hand this is annoying, on the other it’s great that you can just backup your home dir and have all your files and settings in one go. Also this annoyance is easy to solve, just make one dir in home (my is called after my name) and put all your own files in there.

Doesn't the standard just put everything in /home/user/.local anyway?

Re: Dotfile madness

#18
post #16

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 w…

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

#19
post #14

One thing I’ve been thinking about is that it would be nice to tag files with the program that created them. Aside from the clutter in my home directory, I have a lot of files that I have to guess as to where they originated from based on metadata like modification timestamps or permissions, but it would be nice to see something like “~/.config was created by some-tool”.

That is the exact problem that the standard I talk about was designed to solve (apart from the clutter in the home directory).

I think saagarjha's point was that an even simpler standard would be for the creating application to use file metadata to annotate the files. And a simpler standard is generally more likely to be followed, especially if it's unilateral.

This doesn't help with installation, obviously, but it helps with cleanup.

Re: Dotfile madness

#20

On the one hand this is annoying, on the other it’s great that you can just backup your home dir and have all your files and settings in one go. Also this annoyance is easy to solve, just make one dir in home (my is called after my name) and put all your own files in there.

There are cleaner solutions to this- XDG being one. Thee current situation doesn't give an option to people who don't want to do things this way
Post reply on HN