Skip to content

Commit 3252812

Browse files
authored
Merge pull request #803 from fastfetch-cli/dev
Release v2.10.1
2 parents 510a1f5 + 3fa3083 commit 3252812

File tree

3 files changed

+12
-3
lines changed

3 files changed

+12
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 2.10.1
2+
3+
Bugfixes:
4+
* fix build with `-DENABLE_DBUS=OFF`
5+
16
# 2.10.0
27

38
Changes:

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url
22

33
project(fastfetch
4-
VERSION 2.10.0
4+
VERSION 2.10.1
55
LANGUAGES C
66
DESCRIPTION "Fast neofetch-like system information tool"
77
HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch"

src/detection/de/de_linux.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,23 @@ static void getKDE(FFstrbuf* result, FFDEOptions* options)
4343
}
4444
}
4545

46-
static const char* getGnomeBySo(FFstrbuf* result)
46+
static const char* getGnomeByDbus(FF_MAYBE_UNUSED FFstrbuf* result)
4747
{
48+
#ifdef FF_HAVE_DBUS
4849
FFDBusData dbus;
4950
if (ffDBusLoadData(DBUS_BUS_SESSION, &dbus) != NULL)
5051
return "ffDBusLoadData() failed";
5152

5253
ffDBusGetPropertyString(&dbus, "org.gnome.Shell", "/org/gnome/Shell", "org.gnome.Shell", "ShellVersion", result);
5354
return NULL;
55+
#else // FF_HAVE_DBUS
56+
return "ffDBusLoadData() failed: dbus support not compiled in";
57+
#endif // FF_HAVE_DBUS
5458
}
5559

5660
static void getGnome(FFstrbuf* result, FF_MAYBE_UNUSED FFDEOptions* options)
5761
{
58-
getGnomeBySo(result);
62+
getGnomeByDbus(result);
5963

6064
if (result->length == 0 && options->slowVersionDetection)
6165
{

0 commit comments

Comments
 (0)