Skip to content
Snippets Groups Projects
Commit 7e633b56 authored by akiraohgaki's avatar akiraohgaki
Browse files

Install method for plasmapkg

parent 71410382
No related branches found
No related tags found
No related merge requests found
#include <QDebug>
#include <QUrl>
#include <QUrlQuery>
#include <QProcess>
#include "../core/config.h"
#include "../core/network.h"
......@@ -129,7 +130,14 @@ QJsonObject XdgUrl::_importArchiveTypes()
bool XdgUrl::_installPlasmapkg(const QString &path, const QString &type)
{
return true;
QProcess process;
QStringList arguments;
arguments << "-t" << type << "-i" << path;
process.start("plasmapkg2", arguments);
if (process.waitForFinished()) {
return true;
}
return false;
}
bool XdgUrl::_uncompressArchive(const QString &path, const QString &targetDir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment