From 8a25eb6f8a2269c2e61baa5dc61da51247ac47a1 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Wed, 18 Sep 2019 14:56:45 +0200 Subject: [PATCH] Fix mac build --- core/dbushelper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/dbushelper.cpp b/core/dbushelper.cpp index 97ecae9ba..218561ac5 100644 --- a/core/dbushelper.cpp +++ b/core/dbushelper.cpp @@ -63,7 +63,7 @@ void filterNonExportableCharacters(QString& s) QDBusConnection sessionBus() { #ifdef USE_PRIVATE_DBUS - return QDBusConnection::connectToBus(KdeConnectConfig::instance()->privateDBusAddress(), + return QDBusConnection::connectToBus(KdeConnectConfig::instance().privateDBusAddress(), QStringLiteral(KDECONNECT_PRIVATE_DBUS_NAME)); #else return QDBusConnection::sessionBus(); @@ -121,13 +121,13 @@ void DBusInstancePrivate::launchDBusDaemon() QStringLiteral("--address=") + QStringLiteral(KDECONNECT_PRIVATE_DBUS_ADDR) }); m_dbusProcess->setWorkingDirectory(QCoreApplication::applicationDirPath()); - m_dbusProcess->setStandardOutputFile(KdeConnectConfig::instance()->privateDBusAddressPath()); + m_dbusProcess->setStandardOutputFile(KdeConnectConfig::instance().privateDBusAddressPath()); m_dbusProcess->setStandardErrorFile(QProcess::nullDevice()); m_dbusProcess->start(); #ifdef Q_OS_MAC // Set launchctl env - QString privateDBusAddress = KdeConnectConfig::instance()->privateDBusAddress(); + QString privateDBusAddress = KdeConnectConfig::instance().privateDBusAddress(); QRegularExpressionMatch path; if (privateDBusAddress.contains(QRegularExpression( QStringLiteral("path=(?/tmp/dbus-[A-Za-z0-9]+)") @@ -157,7 +157,7 @@ void DBusInstancePrivate::closeDBusDaemon() delete m_dbusProcess; m_dbusProcess = nullptr; - QFile privateDBusAddressFile(KdeConnectConfig::instance()->privateDBusAddressPath()); + QFile privateDBusAddressFile(KdeConnectConfig::instance().privateDBusAddressPath()); if (privateDBusAddressFile.exists()) privateDBusAddressFile.resize(0);