diff --git a/src/utils/serviceutils.h b/src/utils/serviceutils.h index 8a70c1fad3..f0851acab9 100644 --- a/src/utils/serviceutils.h +++ b/src/utils/serviceutils.h @@ -32,7 +32,7 @@ static QStringList fetchProcessServiceField(const QString &executablePath, const static QLoggingCategory KWIN_UTILS ("KWIN_UTILS", QtWarningMsg); const auto servicesFound = KApplicationTrader::query([&executablePath] (const KService::Ptr &service) { - if (service->exec().isEmpty() || service->exec() != executablePath) + if (service->exec().isEmpty() || QFileInfo(service->exec()).canonicalFilePath() != executablePath) return false; return true;