pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / kde / frameworks / solid / fix-search-path.patch
blob010aa1f3efccd8057075a90f0619cbaf9e9015af
1 diff --git a/src/solid/devices/backends/fstab/fstabhandling.cpp b/src/solid/devices/backends/fstab/fstabhandling.cpp
2 index ac2a628..7ee46cc 100644
3 --- a/src/solid/devices/backends/fstab/fstabhandling.cpp
4 +++ b/src/solid/devices/backends/fstab/fstabhandling.cpp
5 @@ -275,7 +275,11 @@ bool Solid::Backends::Fstab::FstabHandling::callSystemCommand(const QString &com
6 const QObject *receiver,
7 std::function<void(QProcess *)> callback)
9 - static const QStringList searchPaths{QStringLiteral("/sbin"), QStringLiteral("/bin"), QStringLiteral("/usr/sbin"), QStringLiteral("/usr/bin")};
10 + static const QStringList searchPaths{QStringLiteral("/run/wrappers/bin"),
11 + QStringLiteral("/sbin"),
12 + QStringLiteral("/bin"),
13 + QStringLiteral("/usr/sbin"),
14 + QStringLiteral("/usr/bin")};
15 static const QString joinedPaths = searchPaths.join(QLatin1Char(':'));
16 const QString exec = QStandardPaths::findExecutable(commandName, searchPaths);
17 if (exec.isEmpty()) {