diff --git a/design/plasmoids b/design/plasmoids --- a/design/plasmoids +++ b/design/plasmoids @@ -78,5 +78,5 @@ Installing and Replacing ======================== -Plasmoid packages can be installed and removed from the Add Widgets interfaces of various Plasma applications, such as plasma desktop, or directly using the plasmapkg binary. See the output of `plasmapkg --help` for more information on using that utility. +Plasmoid packages can be installed and removed from the Add Widgets interfaces of various Plasma applications, such as plasma desktop, or directly using the kpackagetool5 binary. See the output of `kpackagetool5 --help` for more information on using that utility. diff --git a/kcms/desktoptheme/kcm.cpp b/kcms/desktoptheme/kcm.cpp --- a/kcms/desktoptheme/kcm.cpp +++ b/kcms/desktoptheme/kcm.cpp @@ -107,9 +107,8 @@ { qCDebug(KCM_DESKTOP_THEME) << "Installing ... " << file; - QString program = QStringLiteral("plasmapkg2"); - QStringList arguments; - arguments << QStringLiteral("-t") << QStringLiteral("theme") << QStringLiteral("-i") << file.toLocalFile(); + const QString program = QStringLiteral("kpackagetool5"); + const QStringList arguments = { QStringLiteral("--type"), QStringLiteral("Plasma/Theme"), QStringLiteral("--install"), file.toLocalFile()}; qCDebug(KCM_DESKTOP_THEME) << program << arguments.join(QStringLiteral(" ")); QProcess *myProcess = new QProcess(this); diff --git a/kcms/desktoptheme/plasma-themes.knsrc b/kcms/desktoptheme/plasma-themes.knsrc --- a/kcms/desktoptheme/plasma-themes.knsrc +++ b/kcms/desktoptheme/plasma-themes.knsrc @@ -22,5 +22,5 @@ ProvidersUrl=http://download.kde.org/ocs/providers.xml Categories=Plasma Theme StandardResource=tmp -InstallationCommand=plasmapkg2 -t theme -i %f -UninstallCommand=plasmapkg2 -t theme -r %f +InstallationCommand=kpackagetool5 -t Plasma/Theme -i %f +UninstallCommand=kpackagetool5 -t Plasma/Theme -r %f