From d0ef5728ca11e41b42b351c2ce1d81129481c14a Mon Sep 17 00:00:00 2001 From: Feodor Fitsner Date: Mon, 15 Dec 2025 18:04:51 -0800 Subject: [PATCH] Fix UDS path for FLET_SERVER_UDS_PATH environment variable Updated the UDS path assignment to use the full path by joining appTempPath and the socket filename. This ensures the environment variable points to the correct socket location. --- {{cookiecutter.out_dir}}/lib/main.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.out_dir}}/lib/main.dart b/{{cookiecutter.out_dir}}/lib/main.dart index e470929..e0f7479 100644 --- a/{{cookiecutter.out_dir}}/lib/main.dart +++ b/{{cookiecutter.out_dir}}/lib/main.dart @@ -194,7 +194,7 @@ Future prepareApp() async { } else { // use UDS on other platforms pageUrl = "flet_$pid.sock"; - environmentVariables["FLET_SERVER_UDS_PATH"] = pageUrl; + environmentVariables["FLET_SERVER_UDS_PATH"] = path.join(appTempPath, pageUrl); } }