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.
This commit is contained in:
Feodor Fitsner 2025-12-15 18:16:31 -08:00
parent d0ef5728ca
commit 17a397bb9f
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}
}