diff --git a/connection/serverdbusaddress.cpp b/connection/serverdbusaddress.cpp index 67fe0a23..19f46d43 100644 --- a/connection/serverdbusaddress.cpp +++ b/connection/serverdbusaddress.cpp @@ -15,8 +15,8 @@ #include #include - #include +#include #include @@ -61,7 +61,8 @@ DynamicAddress::DynamicAddress() QDBusServer* DynamicAddress::connect() { - QLatin1String dbusAddress("unix:tmpdir=/tmp/maliit-server"); + auto runtimeDir = QStandardPaths::writableLocation(QStandardPaths::RuntimeLocation); + auto dbusAddress = QLatin1String("unix:path=%1/maliit-server").arg(runtimeDir); QDBusServer *server = new QDBusServer(dbusAddress);