From 869aa67d1f87f619d62f23b12f4a4c1353734470 Mon Sep 17 00:00:00 2001 From: Linus Dierheimer Date: Sat, 13 Nov 2021 16:46:32 +0100 Subject: [PATCH] Fix font detection on plasma 5.23+ --- src/common/detectPlasma.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/detectPlasma.c b/src/common/detectPlasma.c index 3085fb2dd..d51753927 100644 --- a/src/common/detectPlasma.c +++ b/src/common/detectPlasma.c @@ -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); }