6 ms·
From the example: # XDG "compliant" programs .config/ etc/ .local/state/ var/lib/ .cache/ var/cache/ This is the first I’ve heard of using ~/etc inste
by amusingimpala75 8mo ago
From the example:
# XDG "compliant" programs
.config/ etc/
.local/state/ var/lib/
.cache/ var/cache/
This is the first I’ve heard of using ~/etc instead of ~/.config as $XDG_CONFIG_DIR. Is there any precedent for that?
- rnhmjoj 8mo agoWell, it's just the natural extension of the FHS convention to the home directory. I didn't come up with this idea, though, I think I saw this in a reddit thread and started doing it myself: I like that the directories are visible and follow the usual structure.
- godelski 8mo agoWhy not push it under a hidden directory? Like ~/.local/etc? If we're reconstructing some of the hierarchy I think it makes sense to group and hide. Isn't the problem that the home folder is getting cluttered?
- rnhmjoj 8mo agoWhy would I hide them? They're not really special and since I'm organising them with modetc they're not cluttered. For reference, my home looks something like this ~ ├── bin binaries and scripts ├── etc configuration files ├── var │ ├── lib program data │ └── cache program caches ├── src git repositories ├── img pictures ├── mail email in maildir format ├── note text notes, todo ├── doc documents └── down downloads
- godelski 8mo agoI mean we hide in the first place because configs and we don't want to clutter But more I was thinking that having ~/bin ~/etc ~/src and so on is just clutter. I use ~/.local/{bin,build,lib} so it's compact and reduces clutter in my home
- dividedbyzero 8mo agoBut why would I want those directories visible in my home dir?
- rustyminnow 8mo agoWhy would I want them hidden? I access files in ~/.config almost daily, I think this is a really good idea