mcfly icon indicating copy to clipboard operation
mcfly copied to clipboard

Can't run any command after MacOS update

Open BoD opened this issue 3 months ago • 5 comments

I'm getting this:

mktemp: mkstemp failed on /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//mcfly.AGPRxtdf: Permission denied
-bash: : No such file or directory
thread 'main' panicked at src/shell_history.rs:17:45:
McFly error: "" file not found
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

after running any command.

Last time it worked was before I updated my OS (to 15.7 (24G222)), so I'm guessing this is related.

After searching a bit, it looks like this is supposed to be a temporary folder, but MacOS is "managing" it, whatever that means, and I have no permissions to it.

Not sure if there's a way to land to a working state again?

BoD avatar Sep 22 '25 07:09 BoD

Setting TMPDIR to a different directory seems to fix it ¯\_(ツ)_/¯

May be related to #377

BoD avatar Sep 22 '25 08:09 BoD

Same here, after upgrading macOS to 15.7.1 (24G231) mcfly stops working with:

mkstemp failed on /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T//mcfly.hxxeGAzJ: Permission denied

Is there an mcfly env var I can use to change temp to a different dir?

stefanprodan avatar Oct 02 '25 10:10 stefanprodan

@stefanprodan You can set TMPDIR, which worked for me. But I later got another MacOS update, left it unset again, and McFly was working without an issue. Or maybe it just needed a reboot? :)

BoD avatar Oct 02 '25 10:10 BoD

You can set TMPDIR, which worked for me.

This would change it for all, I would not want that, just for mcfly to avoid this bug.

stefanprodan avatar Oct 02 '25 10:10 stefanprodan

@BoD I did applied the latest macOS update, restarted and now the issue is gone YEY

stefanprodan avatar Oct 02 '25 11:10 stefanprodan