Fix font detection on plasma 5.23+

This commit is contained in:
Linus Dierheimer
2021-11-13 16:46:32 +01:00
parent fd447ab439
commit 869aa67d1f
+4
View File
@@ -50,6 +50,10 @@ static bool detectFromConfigFile(const FFstrbuf* filename, FFPlasmaResult* resul
if(result->colorScheme.length == 0)
ffGetPropValue(line, "ColorScheme =", &result->colorScheme);
if(result->font.length == 0)
ffGetPropValue(line, "font =", &result->font);
//Before plasma 5.23, "Font" was the key instead of "font". Since a lot of distros ship older versions, we test for both.
if(result->font.length == 0)
ffGetPropValue(line, "Font =", &result->font);
}