2 ms·
MacOS has a $tmpdir env var that you could use instead, it's mapped per-user. I think /tmp/ is auto-mapped to /private/tmp though, which is also user-specific.
by dijit 3y ago
MacOS has a $tmpdir env var that you could use instead, it's mapped per-user.
I think /tmp/ is auto-mapped to /private/tmp though, which is also user-specific.
- SoftTalker 3y agoAh I didn't know that; not a frequent Mac user. Edit: after a bit of web searching, I'm not finding any suggestion that /private is somehow mapped per-user. Is this actually true?
- dvzk 3y ago/private and /private/tmp are shared between all users (including non-login users). $TMPDIR is safer for sensitive files, but it lacks the macOS sandboxing protection on ~/Downloads.