Commit 044ffc93 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Add process

parent 0b983809
Pipeline #200748 passed with stage
in 14 minutes and 49 seconds
......@@ -5,6 +5,7 @@
*/
#include "akonadidatabasetoolsjob.h"
#include "akonadidatasetools_debug.h"
#include <QProcess>
#include <QStandardPaths>
AkonadiDatabaseToolsJob::AkonadiDatabaseToolsJob(QObject *parent)
......@@ -39,11 +40,15 @@ void AkonadiDatabaseToolsJob::start()
case AkonadiDatabaseToolsUtils::Unknown:
qCWarning(AKONADIDATABASETOOLS_LOG) << "mTool is unknown it's a bug! ";
break;
case AkonadiDatabaseToolsUtils::Vaccum:
case AkonadiDatabaseToolsUtils::Vaccum: {
QProcess::execute(QStandardPaths::findExecutable(QStringLiteral("akonadictl")), QStringList({QStringLiteral("vacuum")}));
break;
case AkonadiDatabaseToolsUtils::Fsck:
}
case AkonadiDatabaseToolsUtils::Fsck: {
QProcess::execute(QStandardPaths::findExecutable(QStringLiteral("akonadictl")), QStringList({QStringLiteral("fsck")}));
break;
}
}
deleteLater();
}
Supports Markdown
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