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

Add method for install appimage

parent ae2809cb
No related branches found
No related tags found
No related merge requests found
......@@ -101,4 +101,20 @@ bool Package::uninstallPlasmapkg(const QString &path, const QString &type)
return false;
}
bool Package::installAppimage(const QString &path, const QString &targetDir)
{
QProcess process;
QString program = "install";
QStringList arguments;
arguments << "-D" << "-m" << "755" << path << targetDir;
process.start(program, arguments);
if (process.waitForFinished()) {
return true;
}
return false;
}
} // namespace Utility
......@@ -15,6 +15,7 @@ public:
static bool uncompressArchive(const QString &path, const QString &targetDir);
static bool installPlasmapkg(const QString &path, const QString &type = "plasmoid");
static bool uninstallPlasmapkg(const QString &path, const QString &type = "plasmoid");
static bool installAppimage(const QString &path, const QString &targetDir);
};
} // namespace Utility
......
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