We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac875b commit da77a79Copy full SHA for da77a79
src/modules/host.c
@@ -79,6 +79,13 @@ void ffPrintHost(FFinstance* instance)
79
80
if(!hostValueSet(&product_name))
81
ffStrbufClear(&product_name);
82
+
83
+ //On WSL, the real host can't be detected. Instead use WSL as host.
84
+ if(product_name.length == 0 && product_family.length == 0 && (
85
+ getenv("WSLENV") != NULL ||
86
+ getenv("WSL_DISTRO") != NULL ||
87
+ getenv("WSL_INTEROP") != NULL
88
+ )) ffStrbufAppendS(&product_family, "Windows Subsystem for Linux");
89
#else
90
ffSettingsGetAndroidProperty("ro.product.brand", &product_name);
91
if(product_name.length > 0){
0 commit comments