4 ms·
XDG directories for macOS dotfiles is my hill to tilt windmills. To make it extra fun, my $HOME directory is immutable: chflags uchg "${HOME}" (Simply set
by watersb 1y ago
XDG directories for macOS dotfiles is my hill to tilt windmills.
To make it extra fun, my $HOME directory is immutable:
chflags uchg "${HOME}"
(Simply setting it read-only would work too.)
Preventing arbitrary writes in $HOME breaks things, but it's actually quite rare.
I should document this setup. Or perhaps it's better to keep the madness to myself...
- johnisgood 1y agoNo, I think you should write more about it. Motivations, what about programs or scripts that require writing or at least modifying files in $HOME, etc.? You say it is rare, but is it really? Also what is your way when you want to communicate between two programs? What is your preferred method of IPC? I will check how much my system works if I do the same thing as you, on Linux. :D FWIW I use firejail so applications cannot run anything in $HOME and temporarily (heh) mounted tmpfs (two separate options).
- dkmar 1y agohonestly as long as they don’t use the home directory ill survive. vscode and similar apps not offering any alternative to home directory pollution kills me. I assume this breaks vscode? Would love a writeup if you have time
- vinnymac 1y agoI want this, but also a LuLu firewall style permissions prompt to accept or decline writes to my ~
- qyckudnefDi5 1y agoI'm curious if you make your home directory immutable, where do you store your files like pdfs etc?