Detect WSL as host name

This commit is contained in:
Linus Dierheimer
2022-06-17 20:01:02 +02:00
parent da77a7936f
commit eb0bbd0796
+1 -1
View File
@@ -85,7 +85,7 @@ void ffPrintHost(FFinstance* instance)
getenv("WSLENV") != NULL ||
getenv("WSL_DISTRO") != NULL ||
getenv("WSL_INTEROP") != NULL
)) ffStrbufAppendS(&product_family, "Windows Subsystem for Linux");
)) ffStrbufAppendS(&product_name, "Windows Subsystem for Linux");
#else
ffSettingsGetAndroidProperty("ro.product.brand", &product_name);
if(product_name.length > 0){