News for hackers. Stuff that matters.
Re:$Home, Not So Sweet $Home by maleldil on Thursday August 17, 2023 @02:48AM (#37158085)
As macOS user, I'd rather they use XDG than the "standard" macOS directories. Maybe there's a point to be made to use the standard if the XDG variables aren't set, but I'd generally avoid that for CLI apps. Having everything under ~/.config is more convenient.
Re:$Home, Not So Sweet $Home by b0afc375b5 on Thursday August 17, 2023 @04:47AM (#37158906)
Agreed. "Application\ Support" looks subjectively disgusting to me. It's the only path on my configuration with spaces. I have to use it because that's where vscode settings.json is placed.
Re:$Home, Not So Sweet $Home by moe on Thursday August 17, 2023 @07:35AM (#37160070)
Rest assured this is not subjective. It is objectively disgusting.
Re:$Home, Not So Sweet $Home by easton on Thursday August 17, 2023 @09:05AM (#37160951)
If it helps, it may have been for a good reason. Microsoft used to name the folder that stored user directories "Documents and Settings" so developers would be forced to make sure they could handle paths with spaces in them. Now, they call that folder "Users", and I had to make sure when I set up my Windows install that my name didn't have spaces in it so a bunch of apps didn't get screwy.
Re:$Home, Not So Sweet $Home by fjfuvucucuc on Thursday August 17, 2023 @05:23AM (#37159188)
Xdg isnt just config. Using .config (xdg config) on Mac is super weird.

Xdg is also, .cache (xdg cache dir) for data that can be cleared on reboot allowing you to use tempfs for it (of course you can't because a bunch of shit uses it as a persistent cache for things they should be putting in .local/share/. (Xdg data dir).

This whole mess is so utterly fucked I gave up caring and just let the mess be.

Re:$Home, Not So Sweet $Home by maleldil on Thursday August 17, 2023 @05:43AM (#37159332)
> Using .config (xdg config) on Mac is super weird.

Why? Using it makes macOS more similar to Linux, which I think is a good thing. It surely makes it easier to share configuration files between Macs and Linux machines.

Honestly, I don't see a single upside to using macOS's specific directories over .config/.cache/.local.

Re:$Home, Not So Sweet $Home by halostatue on Thursday August 17, 2023 @10:02AM (#37161715)
There are operating system processes in place to help keep `~/Library/Caches` smaller (or at least somewhat constrained). They are not there for `~/.cache`.
Re:$Home, Not So Sweet $Home by yencabulator on Thursday August 17, 2023 @11:51AM (#37163575)
I don't see anything saying that clearing ~/.cache on every boot is expected behavior. I see lots of real world behavior of using ~/.cache as a multi-gigabyte download cache you would not want to lose regularly.
Re:$Home, Not So Sweet $Home by fjfuvucucuc on Thursday August 17, 2023 @10:10PM (#37170709)
Cache is for user specific, non essential data.

I'd prefer a multigigabyte download went in state or data dirs if you don't want to lose it regularly.

Re:$Home, Not So Sweet $Home by otikik on Thursday August 17, 2023 @06:56AM (#37159770)
+1 to this. I have been a MacOS-exclusive user for more than a decade now and `~/Library/Application\ Support/` is simply ugly and, dare I say, un-Apple like. It has a Window's "My Documents" vibe going on.
Re:$Home, Not So Sweet $Home by anthk on Thursday August 17, 2023 @09:41AM (#37161424)
Not Apple, but that comes from NeXTStep. GNUStep users under Linux/BSD will have it too. And, OFC, WindowMaker users.
Re:$Home, Not So Sweet $Home by otikik on Thursday August 17, 2023 @10:47AM (#37162516)
Interesting, I had no idea.
Re:$Home, Not So Sweet $Home by dividedbyzero on Thursday August 17, 2023 @09:03AM (#37160925)
Big +1, macOS has a lot of UX wins, but their config directories aren't one. Also XDG allows me to have at least some things in the same place on Linux and macOS, which may be a very niche need, but still something I appreciate.
Re:$Home, Not So Sweet $Home by soraminazuki on Thursday August 17, 2023 @09:45AM (#37161469)
I second this. There's no reason unix tools should follow convention designed for macOS GUI applications.

I also prefer XDG because it separates between XDG_DATA_HOME, XDG_STATE_HOME, and XDG_RUNTIME_DIR. The macOS convention does not.

Re:$Home, Not So Sweet $Home by halostatue on Thursday August 17, 2023 @10:00AM (#37161691)
I agree, but in the context of the original complaint — not respecting user and operating system locations — following XDG is anti-user.

I prefer `~/.config`, but it’s not where such configurations go on the Mac (and there are multiple applications that do it differently).