forked from pool/kinfocenter5
7d826f0b14
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/kinfocenter5?expand=0&rev=346
29 lines
1.2 KiB
Diff
29 lines
1.2 KiB
Diff
From 63940ad9bb5eb3bd8c0eefcf20c4b14d68f9c5c2 Mon Sep 17 00:00:00 2001
|
|
From: Fabian Vogt <fabian@ritter-vogt.de>
|
|
Date: Tue, 8 Feb 2022 19:06:23 +0100
|
|
Subject: [PATCH 2/2] Look for binaries in Mesa-demos path as well
|
|
|
|
eglinfo is not in $PATH (yet, boo#1195695)
|
|
---
|
|
src/CommandOutputContext.cpp | 7 +++++++
|
|
1 file changed, 7 insertions(+)
|
|
|
|
Index: kinfocenter-5.17.80git.20220304T103340~f38dd817/src/CommandOutputContext.cpp
|
|
===================================================================
|
|
--- kinfocenter-5.17.80git.20220304T103340~f38dd817.orig/src/CommandOutputContext.cpp 2022-03-04 18:33:40.000000000 +0100
|
|
+++ kinfocenter-5.17.80git.20220304T103340~f38dd817/src/CommandOutputContext.cpp 2022-03-05 08:49:12.679438248 +0100
|
|
@@ -30,6 +30,13 @@
|
|
m_foundExecutablePaths[findExecutable] = QStandardPaths::findExecutable(findExecutable);
|
|
}
|
|
|
|
+ // boo#1195695
|
|
+ if (m_executablePath.isEmpty()) {
|
|
+ m_executablePath =
|
|
+ QStandardPaths::findExecutable(m_executableName,
|
|
+ {QStringLiteral("/usr/lib64/mesa-demos/egl/opengl"), QStringLiteral("/usr/lib/mesa-demos/egl/opengl")});
|
|
+ }
|
|
+
|
|
metaObject()->invokeMethod(this, &CommandOutputContext::load);
|
|
}
|
|
|