Commit 98146835 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Quote url for private window action in webshortcuts runner

parent 6e34cd55
......@@ -26,6 +26,7 @@
#include <KMimeTypeTrader>
#include <KIO/CommandLauncherJob>
#include <KSycoca>
#include <KShell>
WebshortcutRunner::WebshortcutRunner(QObject *parent, const QVariantList& args)
: Plasma::AbstractRunner(parent, args),
......@@ -165,7 +166,8 @@ void WebshortcutRunner::run(const Plasma::RunnerContext &context, const Plasma::
if (!location.isEmpty()) {
if (match.selectedAction()) {
auto *job = new KIO::CommandLauncherJob(m_privateAction.exec() + QLatin1Char(' ') + location.toString());
const auto command = m_privateAction.exec() + QLatin1Char(' ') + KShell::quoteArg(location.toString());
auto *job = new KIO::CommandLauncherJob(command);
job->start();
} else {
QDesktopServices::openUrl(location);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment