From c7163245e3af1a88b3bf8e282d5185a6b0d2e801 Mon Sep 17 00:00:00 2001 From: Toki Date: Sun, 5 Nov 2023 09:37:43 +0900 Subject: [PATCH] =?UTF-8?q?temp=20=EA=B2=BD=EB=A1=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/platform/process.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/platform/process.dart b/lib/platform/process.dart index ec72ef0..0078e5c 100644 --- a/lib/platform/process.dart +++ b/lib/platform/process.dart @@ -94,7 +94,7 @@ class ProcessExecutor { var arg = '$exe ${args.join(' ')}'; var processData = ProcessData(); if (Platform.isMacOS || Platform.isWindows) { - workspace = workspace ?? Directory.current.path; + workspace = workspace ?? Directory.systemTemp.path; print('Execute Shell: $arg'); try { processData.processValue = @@ -116,7 +116,7 @@ class ProcessExecutor { try { var processData = ProcessData(); if (Platform.isMacOS || Platform.isLinux) { - workspace = workspace ?? Directory.current.path; + workspace = workspace ?? Directory.systemTemp.path; var file = File('$workspace/$tempFileName'); processData.file = file; print('Execute Shell: ${file.path} \n ${shell.toString()}'); @@ -132,7 +132,7 @@ class ProcessExecutor { print(e); } } else if (Platform.isWindows) { - workspace = workspace ?? Directory.current.path; + workspace = workspace ?? Directory.systemTemp.path; var file = File('$workspace/$tempFileName'); processData.file = file; print('Execute Shell: ${file.path} \n ${shell.toString()}'); @@ -163,7 +163,7 @@ class ProcessExecutor { var c = Completer(); ProcessResult? processResult; if (Platform.isMacOS || Platform.isLinux) { - workspace = workspace ?? Directory.current.path; + workspace = workspace ?? Directory.systemTemp.path; var file = File('$workspace/$tempFileName'); print('Execute Shell: ${file.path} \n ${shell.toString()}'); file.createSync(); @@ -186,7 +186,7 @@ class ProcessExecutor { } c.complete(processResult); } else if (Platform.isWindows) { - workspace = workspace ?? Directory.current.path; + workspace = workspace ?? Directory.systemTemp.path; var file = File('$workspace/$tempFileName'); print('Execute Bat: ${file.path} \n ${shell.toString()}'); file.createSync();