+ if (isDbusSession) {
+ final var busName = ns.getString("bus-name");
+ daemonHandler.runDbus(false, busName);
+ }
+
+ if (!isDbusSystem
+ && !isDbusSession
+ && socketFile == null
+ && tcpAddress == null
+ && httpAddress == null
+ && inheritedChannel == null) {
+ logger.warn(
+ "Running daemon command without explicit mode is deprecated. Use 'daemon --dbus' to use the dbus interface.");
+ daemonHandler.runDbus(false, DbusConfig.getBusname());