Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

From my previous recollection, there's an issue for this in just about every rust crate that handles these dirs. The right way to fix this is fix the spec, then make the libs adhere to the spec.


How would you fix the spec? Add a line explicitly stating the /Library/Application Support dir is only for applications with a bundle ID, instead of just implying it?


For clarity, is this what you're referring to as "the spec"? https://developer.apple.com/library/archive/documentation/Fi...


No the xdg base directories spec. If you want to be able to opt in to dry on a system which doesn’t canonically use xdg vars, then you need some config.


XDG is cross-distribution for Linux, but it's not cross-platform. MacOS doesn't use XDG.


That’s my point. MacOS doesn’t use it, but many expect it to do so, so make this explicitly opt in so that a user’s preference is respected over the canonical configuration. To do that the best place to define the setting is in the spec.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: