# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/kinfocenter/hotfix-sbin.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- kinfocenter-6.6.91/src/CommandOutputContext.cpp.vanilla 2026-06-10 20:47:32.985911524 +0200 +++ kinfocenter-6.6.91/src/CommandOutputContext.cpp 2026-06-10 20:47:37.806936236 +0200 @@ -48,7 +48,13 @@ m_foundExecutablePaths[executable] = m_executablePath; for (const QString &findExecutable : findExecutables) { - m_foundExecutablePaths[findExecutable] = QStandardPaths::findExecutable(findExecutable); + QString executablePath = QStandardPaths::findExecutable(findExecutable); + + if (executablePath.isEmpty()) { + executablePath = + QStandardPaths::findExecutable(findExecutable, {QStringLiteral("/usr/local/sbin"), QStringLiteral("/usr/sbin"), QStringLiteral("/sbin")}); + } + m_foundExecutablePaths[findExecutable] = executablePath; } m_autoRefreshTimer = new QTimer(this);