diff --git a/CHANGELOG.md b/CHANGELOG.md index c81d8040b..367fbe9e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 1.11.2 + +Bugfixes: +* Fix Gnome version detection on Fedora + # 1.11.1 Features: diff --git a/src/detection/displayserver/linux/wmde.c b/src/detection/displayserver/linux/wmde.c index 3c40b2e11..db309b92a 100644 --- a/src/detection/displayserver/linux/wmde.c +++ b/src/detection/displayserver/linux/wmde.c @@ -141,6 +141,16 @@ static void getGnome(const FFinstance* instance, FFDisplayServerResult* result) ffStrbufSetS(&result->deProcessName, "gnome-shell"); ffStrbufSetS(&result->dePrettyName, FF_DE_PRETTY_GNOME); ffParsePropFileData(instance, "gnome-shell/org.gnome.Extensions", "version :", &result->deVersion); + + if (result->deVersion.length == 0) + { + if (ffProcessAppendStdOut(&result->deVersion, (char* const[]){ + "gnome-shell", + "--version", + NULL + }) == NULL) // GNOME Shell 44.1 + ffStrbufSubstrAfterLastC(&result->deVersion, ' '); + } } static void getCinnamon(const FFinstance* instance, FFDisplayServerResult* result)