diff --git a/CHANGELOG.md b/CHANGELOG.md index e7aebf98b..5f20a840a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 2.10.1 + +Bugfixes: +* fix build with ENABLE_DBUS=OFF + # 2.10.0 Changes: diff --git a/src/detection/de/de_linux.c b/src/detection/de/de_linux.c index 7fbb4652a..9443d55fd 100644 --- a/src/detection/de/de_linux.c +++ b/src/detection/de/de_linux.c @@ -45,12 +45,16 @@ static void getKDE(FFstrbuf* result, FFDEOptions* options) static const char* getGnomeBySo(FFstrbuf* result) { +#ifdef FF_HAVE_DBUS FFDBusData dbus; if (ffDBusLoadData(DBUS_BUS_SESSION, &dbus) != NULL) return "ffDBusLoadData() failed"; ffDBusGetPropertyString(&dbus, "org.gnome.Shell", "/org/gnome/Shell", "org.gnome.Shell", "ShellVersion", result); return NULL; +#else // FF_HAVE_DBUS + return "ffDBusLoadData() failed: dbus support not compiled in"; +#endif // FF_HAVE_DBUS } static void getGnome(FFstrbuf* result, FF_MAYBE_UNUSED FFDEOptions* options)