Basic CLI support

Closes #221
This commit is contained in:
Floris Bos 2021-05-06 01:47:34 +02:00
parent 258f9d77aa
commit 62e9969afb
9 changed files with 307 additions and 10 deletions

View file

@ -61,7 +61,7 @@ QString UDisks2Api::_resolveDevice(const QString &device)
void UDisks2Api::_unmountDrive(const QString &driveDbusPath)
{
qDebug() << "Drive:" << driveDbusPath;
//qDebug() << "Drive:" << driveDbusPath;
QDBusInterface manager("org.freedesktop.UDisks2", "/org/freedesktop/UDisks2/Manager",
"org.freedesktop.UDisks2.Manager", QDBusConnection::systemBus());
@ -81,7 +81,7 @@ void UDisks2Api::_unmountDrive(const QString &driveDbusPath)
if (driveOfDev != driveDbusPath)
continue;
qDebug() << "Device:" << devpathStr << "belongs to same drive";
//qDebug() << "Device:" << devpathStr << "belongs to same drive";
QDBusInterface filesystem("org.freedesktop.UDisks2", devpathStr,
"org.freedesktop.UDisks2.Filesystem", QDBusConnection::systemBus());