diff --git a/unity.inc.php b/unity.inc.php index 00ff532..8a4f0fe 100644 --- a/unity.inc.php +++ b/unity.inc.php @@ -111,6 +111,10 @@ function unity_run_proc($shared_cmd) $unity_app_path = $app_dir . "Editor/Unity.exe"; $cmd = "powershell.exe (Start-Process '$unity_app_path'-ArgumentList '$shared_cmd' -passthru).Id"; } + else if(is_linux()) + { + $cmd = "'$app_dir/Editor/Unity' $shared_cmd > /dev/null & echo $!"; + } else { $cmd = "'$app_dir/Unity.app/Contents/MacOS/Unity' $shared_cmd > /dev/null & echo $!";