diff --git a/unity.inc.php b/unity.inc.php index b542044..cccb919 100644 --- a/unity.inc.php +++ b/unity.inc.php @@ -11,6 +11,12 @@ task('unity', function() $unity_app_path = "'$unity_path/Editor/Unity.exe'"; run_background_proc($unity_app_path, ['-projectPath', "$proj_path"]); } + else if(is_linux()) + { + $unity_path = get('UNITY_APP_DIR'); + $unity_app_path = "'$unity_path/Editor/Unity'"; + run_background_proc($unity_app_path, ['-projectPath', "$proj_path"]); + } else { $cmd = guess_unity_app_dir()."'Unity.app/Contents/MacOS/Unity' -projectPath '$proj_path' > /dev/null 2>&1&";