Revert "Update temp directory usage for socket paths"
This reverts commit 84c512c0c6.
This commit is contained in:
parent
84c512c0c6
commit
12973817b4
|
|
@ -168,7 +168,7 @@ Future prepareApp() async {
|
|||
// configure apps DATA and TEMP directories
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
|
||||
var appTempPath = (await path_provider.getTemporaryDirectory()).path;
|
||||
var appTempPath = (await path_provider.getApplicationCacheDirectory()).path;
|
||||
var appDataPath =
|
||||
(await path_provider.getApplicationDocumentsDirectory()).path;
|
||||
|
||||
|
|
@ -198,7 +198,7 @@ Future prepareApp() async {
|
|||
environmentVariables["FLET_SERVER_PORT"] = tcpPort.toString();
|
||||
} else {
|
||||
// use UDS on other platforms
|
||||
pageUrl = path.join(appTempPath, "flet_$pid.sock");
|
||||
pageUrl = "flet_$pid.sock";
|
||||
environmentVariables["FLET_SERVER_UDS_PATH"] = pageUrl;
|
||||
}
|
||||
}
|
||||
|
|
@ -227,7 +227,7 @@ Future<String?> runPythonApp(List<String> args) async {
|
|||
'Python output TCP Server is listening on port ${outSocketServer.port}');
|
||||
socketAddr = "$tcpAddr:${outSocketServer.port}";
|
||||
} else {
|
||||
socketAddr = path.join(environmentVariables["FLET_APP_STORAGE_TEMP"]!, "stdout_$pid.sock");
|
||||
socketAddr = "stdout_$pid.sock";
|
||||
if (await File(socketAddr).exists()) {
|
||||
await File(socketAddr).delete();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue