Commit 1051804b authored by Gleb Popov's avatar Gleb Popov

Register the D-Bus service before running initial probes.

parent b5ce432851d6
...@@ -144,11 +144,11 @@ int main(int argc, char** argv) ...@@ -144,11 +144,11 @@ int main(int argc, char** argv)
QThreadPool::globalInstance()->setExpiryTimeout(-1); QThreadPool::globalInstance()->setExpiryTimeout(-1);
QThreadPool::globalInstance()->setMaxThreadCount(4); QThreadPool::globalInstance()->setMaxThreadCount(4);
manager.initialProbe();
QDBusConnection::systemBus().registerObject( QDBusConnection::systemBus().registerObject(
"/org/freedesktop/UDisks2", &manager); "/org/freedesktop/UDisks2", &manager);
manager.initialProbe();
DevdThread devd; DevdThread devd;
QObject::connect(&devd, &DevdThread::driveAdded, &manager, &ObjectManager::addDrive); QObject::connect(&devd, &DevdThread::driveAdded, &manager, &ObjectManager::addDrive);
QObject::connect(&devd, &DevdThread::blockAdded, &manager, &ObjectManager::addBlock); QObject::connect(&devd, &DevdThread::blockAdded, &manager, &ObjectManager::addBlock);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment