konsole: pass the service entry path to KToolInvocation::startServiceByStorageId()

fixes regression since 957da2bb43

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-13 09:23:47 +03:00
parent c90b03837f
commit fb92498235

View file

@ -468,7 +468,7 @@ void SessionController::updateOpenWithMenu(const QString &selectedText)
for(KService::List::Iterator it = offers.begin(); it != offers.end(); ++it) {
KService::Ptr service = *it;
KAction *action = new KAction(KIcon(service->icon()), service->name(), _openWithMenu);
const QStringList actionData = QStringList() << service->exec() << searchText;
const QStringList actionData = QStringList() << service->entryPath() << searchText;
action->setData(actionData);
connect(action, SIGNAL(triggered()), this, SLOT(handleOpenWithAction()));
_openWithMenu->addAction(action);