chiark / gitweb /
Support system_bus_socket to be found in /var/run/dbus as well as /run/dbus.
[elogind.git] / src / libelogind / sd-bus / test-bus-vtable.c
index fd9ad8121742faf55c97eb31d239e7fe4969005b..5604aa668e251bc86f82af3f1cb246fe8ce109ca 100644 (file)
@@ -8,7 +8,15 @@
 
 #include "sd-bus-vtable.h"
 
+#if 0 /// elogind should support both /run/dbus & /var/run/dbus (per Linux FHS)
 #define DEFAULT_BUS_PATH "unix:path=/run/dbus/system_bus_socket"
+#else
+#if VARRUN_IS_SYMLINK
+  #define DEFAULT_BUS_PATH "unix:path=/run/dbus/system_bus_socket"
+#else
+  #define DEFAULT_BUS_PATH "unix:path=/var/run/dbus/system_bus_socket"
+#endif // VARRUN_IS_SYMLINK
+#endif // 0
 
 struct context {
         bool quit;