DE: Fix Gnome version detection on Fedora

This commit is contained in:
李通洲
2023-05-28 01:10:00 +08:00
parent e13d554433
commit 782325395c
2 changed files with 15 additions and 0 deletions
+5
View File
@@ -1,3 +1,8 @@
# 1.11.2
Bugfixes:
* Fix Gnome version detection on Fedora
# 1.11.1
Features:
+10
View File
@@ -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)