Process run / start behaves differently in 'flutter run' and directly running a built app

Viewed 218

I'm using Process.run() / Process.start() to open tensorboard in my flutter app on macos. A weird problem is everything goes well when I directly run the flutter app on the connected device (by using flutter run or flutter run --release). But when I use flutter build macos or flutter build macos --release and then open the built app, the app will collapse when I trigger the Process.run() / Process.start() command.

For further experiments, I tried setting runInShell to be true and this time the built app won't crash but still I cannot open tensorboard.

I doubt if the different behavior is because the father process of these two running ways is different. So is there a way to run the command in flutter as if using the terminal to do so?

0 Answers
Related