Skip to content

Commit 57f6aff

Browse files
authored
Merge pull request #802 from ceamac/fix/dbus
fix/dbus
2 parents a1c9b24 + d745d7a commit 57f6aff

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
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 ENABLE_DBUS=OFF
5+
16
# 2.10.0
27

38
Changes:

src/detection/de/de_linux.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,16 @@ static void getKDE(FFstrbuf* result, FFDEOptions* options)
4545

4646
static const char* getGnomeBySo(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)

0 commit comments

Comments
 (0)