DE (Linux): correctly capitalize GNOME

Fix #997
This commit is contained in:
李通洲 2024-06-06 16:42:11 +08:00
parent 92ffaf77de
commit eae73883db
No known key found for this signature in database
GPG Key ID: 269AD4F5325A22A3
5 changed files with 11 additions and 11 deletions

View File

@ -273,7 +273,7 @@ Features:
* Improve GPU detection on Linux (GPU, Linux)
* Support GPU memory usage detection for AMD GPUs
* Support GPU frequency detection for Intel GPUs
* Improve performance of Gnome version detection (DE, Linux)
* Improve performance of GNOME version detection (DE, Linux)
* Improve performance of kitty version detection (Terminal, Linux)
* Detect refresh rate when using `--ds-force-drm sysfs-only` (Display, Linux)
* Add option `--ts-version` to disable terminal and shell version detection. Mainly for benchmarking purposes
@ -980,7 +980,7 @@ Bugfixes:
* Fix Windows drives detection in WSL (Linux, Disk)
* Fix CPU temp detection (FreeBSD, CPU)
* Fix disk detection (Android, Disk)
* Fix Gnome Terminal version and font detection (FreeBSD, TerminalFont)
* Fix GNOME Terminal version and font detection (FreeBSD, TerminalFont)
* Fix crash on newer wayland desktops (Linux, Display, #477)
* Fix vendor detection for Intel GPU (macOS, GPU)
* Fix possible crashes on Windows Server (Windows, GPU, #484)
@ -1006,7 +1006,7 @@ Features:
* Add mac address detection `--localip-show-mac` (LocalIP, #451)
Bugfixes:
* Fix Gnome version detection on Fedora (DE)
* Fix GNOME version detection on Fedora (DE)
* Fix Windows drives detection in WSL (Disk)
Changes:

View File

@ -3,8 +3,8 @@
#include "fastfetch.h"
#define FF_DE_PRETTY_PLASMA "KDE Plasma"
#define FF_DE_PRETTY_GNOME "Gnome"
#define FF_DE_PRETTY_GNOME_CLASSIC "Gnome Classic"
#define FF_DE_PRETTY_GNOME "GNOME"
#define FF_DE_PRETTY_GNOME_CLASSIC "GNOME Classic"
#define FF_DE_PRETTY_XFCE4 "Xfce4"
#define FF_DE_PRETTY_CINNAMON "Cinnamon"
#define FF_DE_PRETTY_MATE "Mate"

View File

@ -43,7 +43,7 @@ static const char* parseEnv(void)
return "KDE";
if(getenv("GNOME_DESKTOP_SESSION_ID") != NULL)
return "Gnome";
return "GNOME";
if(getenv("MATE_DESKTOP_SESSION_ID") != NULL)
return "Mate";
@ -163,7 +163,7 @@ static void applyPrettyNameIfDE(FFDisplayServerResult* result, const char* name)
}
else if(
ffStrEqualsIgnCase(name, "Gnome") ||
ffStrEqualsIgnCase(name, "GNOME") ||
ffStrEqualsIgnCase(name, "ubuntu:GNOME") ||
ffStrEqualsIgnCase(name, "ubuntu") ||
ffStrEqualsIgnCase(name, "gnome-shell")

View File

@ -153,7 +153,7 @@ static void detectGTKFromConfigDir(FFstrbuf* configDir, const char* version, FFG
static void detectGTK(const char* version, FFGTKResult* result)
{
//Mate, Cinnamon, Gnome, Unity, Budgie use dconf to save theme config
//Mate, Cinnamon, GNOME, Unity, Budgie use dconf to save theme config
//On other DEs, this will do nothing
detectGTKFromSettings(result);
if(allPropertiesSet(result))

View File

@ -1802,9 +1802,9 @@ static const FFlogo G[] = {
.colorKeys = FF_COLOR_FG_BLUE,
.colorTitle = FF_COLOR_FG_BLUE,
},
// Gnome
// GNOME
{
.names = {"Gnome"},
.names = {"GNOME"},
.lines = FASTFETCH_DATATEXT_LOGO_GNOME,
.colors = {
FF_COLOR_FG_BLUE,
@ -4158,7 +4158,7 @@ static const FFlogo U[] = {
FF_COLOR_FG_WHITE,
},
},
// UbuntuGnome
// UbuntuGNOME
{
.names = {"ubuntu gnome", "ubuntu-gnome"},
.lines = FASTFETCH_DATATEXT_LOGO_UBUNTU_GNOME,