]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
cmake: Correct DBUS_{SYSTEM,SESSION}_CONFIG_FILE on UNIX systems
authorAlex Richardson <arichardson.kde@gmail.com>
Fri, 1 Apr 2022 11:09:45 +0000 (11:09 +0000)
committerSimon McVittie <smcv@collabora.com>
Tue, 19 Apr 2022 11:52:22 +0000 (11:52 +0000)
We always install to a dbus-1 subdir, but the path encoded in the binary
was missing the dbus-1/ subdirectory, so we end up getting errors when
trying to load it.

CMakeLists.txt

index 99f102c53d848d3d8c7d0191d2757f0c25978a2c..c7fc6f2aeb3604eace2392baf05e47185f112e2d 100644 (file)
@@ -625,8 +625,8 @@ if(WIN32)
 else(WIN32)
     set(DBUS_SESSION_BUS_LISTEN_ADDRESS "unix:tmpdir=${DBUS_SESSION_SOCKET_DIR}" CACHE STRING "session bus default listening address")
     set(DBUS_SESSION_BUS_CONNECT_ADDRESS "autolaunch:" CACHE STRING "session bus fallback address for clients")
-    set(DBUS_SYSTEM_CONFIG_FILE  ${DBUS_DATADIR}/system.conf)
-    set(DBUS_SESSION_CONFIG_FILE ${DBUS_DATADIR}/session.conf)
+    set(DBUS_SYSTEM_CONFIG_FILE  ${DBUS_DATADIR}/dbus-1/system.conf)
+    set(DBUS_SESSION_CONFIG_FILE ${DBUS_DATADIR}/dbus-1/session.conf)
     set(DBUS_USER "messagebus")
     set(DBUS_TEST_USER "nobody")
   # For best security, assume that all non-Windows platforms can do