diff --git a/src/core/installation.cpp b/src/core/installation.cpp --- a/src/core/installation.cpp +++ b/src/core/installation.cpp @@ -523,7 +523,7 @@ installfile = source.fileName(); } } - QString installpath = installdir + QLatin1Char('/') + installfile; + QString installpath = QDir(installdir).filePath(installfile); qCDebug(KNEWSTUFFCORE) << "Install to file " << installpath; // FIXME: copy goes here (including overwrite checking) @@ -606,7 +606,9 @@ QString command(uninstallCommand); command.replace(QLatin1String("%f"), fileArg); - int exitcode = QProcess::execute(command, QStringList()); + QStringList args = KShell::splitArgs(command); + const QString program = args.takeFirst(); + int exitcode = QProcess::execute(program, args); if (exitcode) { emit signalInstallationError(i18n("The uninstallation process failed to successfully run the command %1", command));