Skip to content

Commit eae7388

Browse files
committed
DE (Linux): correctly capitalize GNOME
Fix #997
1 parent 92ffaf7 commit eae7388

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ Features:
273273
* Improve GPU detection on Linux (GPU, Linux)
274274
* Support GPU memory usage detection for AMD GPUs
275275
* Support GPU frequency detection for Intel GPUs
276-
* Improve performance of Gnome version detection (DE, Linux)
276+
* Improve performance of GNOME version detection (DE, Linux)
277277
* Improve performance of kitty version detection (Terminal, Linux)
278278
* Detect refresh rate when using `--ds-force-drm sysfs-only` (Display, Linux)
279279
* Add option `--ts-version` to disable terminal and shell version detection. Mainly for benchmarking purposes
@@ -980,7 +980,7 @@ Bugfixes:
980980
* Fix Windows drives detection in WSL (Linux, Disk)
981981
* Fix CPU temp detection (FreeBSD, CPU)
982982
* Fix disk detection (Android, Disk)
983-
* Fix Gnome Terminal version and font detection (FreeBSD, TerminalFont)
983+
* Fix GNOME Terminal version and font detection (FreeBSD, TerminalFont)
984984
* Fix crash on newer wayland desktops (Linux, Display, #477)
985985
* Fix vendor detection for Intel GPU (macOS, GPU)
986986
* Fix possible crashes on Windows Server (Windows, GPU, #484)
@@ -1006,7 +1006,7 @@ Features:
10061006
* Add mac address detection `--localip-show-mac` (LocalIP, #451)
10071007

10081008
Bugfixes:
1009-
* Fix Gnome version detection on Fedora (DE)
1009+
* Fix GNOME version detection on Fedora (DE)
10101010
* Fix Windows drives detection in WSL (Disk)
10111011

10121012
Changes:

src/detection/displayserver/displayserver.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
#include "fastfetch.h"
44

55
#define FF_DE_PRETTY_PLASMA "KDE Plasma"
6-
#define FF_DE_PRETTY_GNOME "Gnome"
7-
#define FF_DE_PRETTY_GNOME_CLASSIC "Gnome Classic"
6+
#define FF_DE_PRETTY_GNOME "GNOME"
7+
#define FF_DE_PRETTY_GNOME_CLASSIC "GNOME Classic"
88
#define FF_DE_PRETTY_XFCE4 "Xfce4"
99
#define FF_DE_PRETTY_CINNAMON "Cinnamon"
1010
#define FF_DE_PRETTY_MATE "Mate"

src/detection/displayserver/linux/wmde.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ static const char* parseEnv(void)
4343
return "KDE";
4444

4545
if(getenv("GNOME_DESKTOP_SESSION_ID") != NULL)
46-
return "Gnome";
46+
return "GNOME";
4747

4848
if(getenv("MATE_DESKTOP_SESSION_ID") != NULL)
4949
return "Mate";
@@ -163,7 +163,7 @@ static void applyPrettyNameIfDE(FFDisplayServerResult* result, const char* name)
163163
}
164164

165165
else if(
166-
ffStrEqualsIgnCase(name, "Gnome") ||
166+
ffStrEqualsIgnCase(name, "GNOME") ||
167167
ffStrEqualsIgnCase(name, "ubuntu:GNOME") ||
168168
ffStrEqualsIgnCase(name, "ubuntu") ||
169169
ffStrEqualsIgnCase(name, "gnome-shell")

src/detection/gtk_qt/gtk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static void detectGTKFromConfigDir(FFstrbuf* configDir, const char* version, FFG
153153

154154
static void detectGTK(const char* version, FFGTKResult* result)
155155
{
156-
//Mate, Cinnamon, Gnome, Unity, Budgie use dconf to save theme config
156+
//Mate, Cinnamon, GNOME, Unity, Budgie use dconf to save theme config
157157
//On other DEs, this will do nothing
158158
detectGTKFromSettings(result);
159159
if(allPropertiesSet(result))

src/logo/builtin.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,9 +1802,9 @@ static const FFlogo G[] = {
18021802
.colorKeys = FF_COLOR_FG_BLUE,
18031803
.colorTitle = FF_COLOR_FG_BLUE,
18041804
},
1805-
// Gnome
1805+
// GNOME
18061806
{
1807-
.names = {"Gnome"},
1807+
.names = {"GNOME"},
18081808
.lines = FASTFETCH_DATATEXT_LOGO_GNOME,
18091809
.colors = {
18101810
FF_COLOR_FG_BLUE,
@@ -4158,7 +4158,7 @@ static const FFlogo U[] = {
41584158
FF_COLOR_FG_WHITE,
41594159
},
41604160
},
4161-
// UbuntuGnome
4161+
// UbuntuGNOME
41624162
{
41634163
.names = {"ubuntu gnome", "ubuntu-gnome"},
41644164
.lines = FASTFETCH_DATATEXT_LOGO_UBUNTU_GNOME,

0 commit comments

Comments
 (0)