-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
I have faced impediment that in Windows I need to provide full path to flutter executable because PATH value is ignored due to the documentation
Using an absolute path for executable is recommended since resolving the executable path is platform-specific. On Windows, both any PATH set in the environment map parameter and the path set in working Directory parameter are ignored for the purposes of resolving the executable path.
And the main problem location of flutter is totally dynamic and machine dependant.
| final process = await Process.start( |
As for me quist fix was to run command in Shell:
final process = await Process.start(
cmds.removeAt(0),
cmds,
runInShell: true,
mode: isVerbose ? ProcessStartMode.inheritStdio : ProcessStartMode.normal,
);In dart:io there is property isWindows, we can explicitly apply runInShell flag for Windows OS.
P.S.: I seems command should be runned with mode ProcessStartMode.inheritStdio in such case
Metadata
Metadata
Assignees
Labels
No labels