Probably more of a MacOS/zsh question than a Flutter question.
The error message is:
/bin/sh: exiftool: command not found
I am trying to call exiftool from my Flutter MacOS desktop app.
ProcessResult processResult = Process.runSync('exiftool', params, runInShell: true);
The params is just the path to the file.
I installed exiftool using brew. There's a symlink to it in /usr/local/bin. /usr/local/bin is in the path. I can call exiftool from the terminal without any error.
I run the application from Android Studio, and this only happens when Android Studio starts at start up and it also starts the application (I check the reopen applications checkbox when I reboot). If I close the application and Android Studio and restart them again, it works.
Is it possible that the environment is not completely set up when MacOS starts Android Studio ? Any way to mitigate this ?
Thank you.