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

Rename installAppimage() to installProgram()

parent 50cad3f4
No related branches found
No related tags found
No related merge requests found
......@@ -194,7 +194,7 @@ void XdgUrl::_installDownloadedFile(QNetworkReply *reply)
result["message"] = QString("The KWin window switcher has been installed");
}
else if (type == "appimages"
&& Utility::Package::installAppimage(temporaryFile.fileName(), path)) {
&& Utility::Package::installProgram(temporaryFile.fileName(), path)) {
result["message"] = QString("The Appimage has been installed into " + destination);
}
else if (Utility::Package::uncompressArchive(temporaryFile.fileName(), destination)) {
......
......@@ -101,7 +101,7 @@ bool Package::uninstallPlasmapkg(const QString &path, const QString &type)
return false;
}
bool Package::installAppimage(const QString &path, const QString &targetPath)
bool Package::installProgram(const QString &path, const QString &targetPath)
{
QProcess process;
QString program = "install";
......
......@@ -15,7 +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 &targetPath);
static bool installProgram(const QString &path, const QString &targetPath);
};
} // 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