From 17a397bb9f46cc93d5e7d47be12d12937479c0ef Mon Sep 17 00:00:00 2001 From: Feodor Fitsner Date: Mon, 15 Dec 2025 18:16:31 -0800 Subject: [PATCH] Fix UDS path assignment for non-Windows platforms Corrects the construction of the Unix Domain Socket path by joining the temp directory and socket filename, ensuring the environment variable and pageUrl are set consistently. --- {{cookiecutter.out_dir}}/lib/main.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.out_dir}}/lib/main.dart b/{{cookiecutter.out_dir}}/lib/main.dart index e0f7479..a619577 100644 --- a/{{cookiecutter.out_dir}}/lib/main.dart +++ b/{{cookiecutter.out_dir}}/lib/main.dart @@ -193,8 +193,8 @@ Future prepareApp() async { environmentVariables["FLET_SERVER_PORT"] = tcpPort.toString(); } else { // use UDS on other platforms - pageUrl = "flet_$pid.sock"; - environmentVariables["FLET_SERVER_UDS_PATH"] = path.join(appTempPath, pageUrl); + pageUrl = path.join(appTempPath, "flet_$pid.sock"); + environmentVariables["FLET_SERVER_UDS_PATH"] = pageUrl; } }