acomagu/fish-async-prompt

Use of $XDG_RUNTIME_DIR breaks macOS support

jaminthorns opened this issue · 2 comments

In the script, the $XDG_RUNTIME_DIR environment variable is used, which is part of the XDG Base Directory Specification. macOS does not implement this standard. Since $XDG_RUNTIME_DIR will expand to an empty string, the script tries to write to /fish-async-prompt. In macOS Big Sur, the root directory is read-only, which renders this plugin non-functional.

@jaminthorns Oh, sorry for that. I think the master is fixed by 40f30a4. Could you retry?

Hi, I think 40f30a4 is in master, right? Because this still fails on login:

mkdir: /run/user/501/fish-async-prompt: Read-only file system