Commit a0179220 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Task Manager] Pass local file to KService instead of stringified URL

KService doesn't know what to do with "file://"

Differential Revision:
parent 87579efb
......@@ -118,7 +118,7 @@ void Item::setLauncherUrl(const QUrl &launcherUrl)
m_launcherUrl = launcherUrl;
emit launcherUrlChanged(launcherUrl);
KService::Ptr service = KService::serviceByStorageId(launcherUrl.toString()); // can we do better?
KService::Ptr service = KService::serviceByDesktopPath(launcherUrl.toLocalFile());
if (service) {
m_storageId = service->storageId();
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