From 8a9e5a80b4be7d8659ce4fd4f52a3c72c92ca553 Mon Sep 17 00:00:00 2001 From: Marco Allegretti Date: Mon, 23 Mar 2026 13:08:49 +0100 Subject: [PATCH] Reduce runner service start to a single attempt --- src/gamelauncher.cpp | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/gamelauncher.cpp b/src/gamelauncher.cpp index f2b3a60..156a183 100644 --- a/src/gamelauncher.cpp +++ b/src/gamelauncher.cpp @@ -134,18 +134,6 @@ static bool tryResolveWithRunnerManager(const QVariantMap &spec, QVariantMap &ou org::kde::ALaKarte::Runner1 iface(kRunnerService, kRunnerPath, bus); if (!iface.isValid()) { - if (bus.interface()->startService(kRunnerService).isValid()) { - org::kde::ALaKarte::Runner1 retryIface(kRunnerService, kRunnerPath, bus); - if (retryIface.isValid()) { - retryIface.setTimeout(2000); - QDBusPendingReply retryReply = retryIface.ResolveLaunch(spec); - retryReply.waitForFinished(); - if (!retryReply.isError()) { - out = unwrapVariantMap(retryReply.value()); - return true; - } - } - } return false; } @@ -153,21 +141,6 @@ static bool tryResolveWithRunnerManager(const QVariantMap &spec, QVariantMap &ou QDBusPendingReply reply = iface.ResolveLaunch(spec); reply.waitForFinished(); if (reply.isError()) { - if (reply.error().type() == QDBusError::ServiceUnknown) { - bus.interface()->startService(kRunnerService); - org::kde::ALaKarte::Runner1 retryIface(kRunnerService, kRunnerPath, bus); - if (!retryIface.isValid()) { - return false; - } - retryIface.setTimeout(2000); - QDBusPendingReply retryReply = retryIface.ResolveLaunch(spec); - retryReply.waitForFinished(); - if (retryReply.isError()) { - return false; - } - out = unwrapVariantMap(retryReply.value()); - return true; - } return false; }