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:
parent
d0ef5728ca
commit
17a397bb9f
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue