The DeviceKit service not being around is not necessarily an error - it might get started automatically. Thanks mail@holger-mense.de. Fixes issue #1060
This commit is contained in:
parent
9b82ecbb72
commit
9b1765d1b0
@ -47,12 +47,6 @@ void DeviceKitLister::Init() {
|
|||||||
OrgFreedesktopUDisksInterface::staticInterfaceName(),
|
OrgFreedesktopUDisksInterface::staticInterfaceName(),
|
||||||
"/org/freedesktop/UDisks", QDBusConnection::systemBus()));
|
"/org/freedesktop/UDisks", QDBusConnection::systemBus()));
|
||||||
|
|
||||||
if (!interface_->isValid()) {
|
|
||||||
qWarning() << "Error connecting to the DeviceKit-disks DBUS service";
|
|
||||||
interface_.reset();
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Listen for changes
|
// Listen for changes
|
||||||
connect(interface_.get(), SIGNAL(DeviceAdded(QDBusObjectPath)), SLOT(DBusDeviceAdded(QDBusObjectPath)));
|
connect(interface_.get(), SIGNAL(DeviceAdded(QDBusObjectPath)), SLOT(DBusDeviceAdded(QDBusObjectPath)));
|
||||||
connect(interface_.get(), SIGNAL(DeviceRemoved(QDBusObjectPath)), SLOT(DBusDeviceRemoved(QDBusObjectPath)));
|
connect(interface_.get(), SIGNAL(DeviceRemoved(QDBusObjectPath)), SLOT(DBusDeviceRemoved(QDBusObjectPath)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user