Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
17 lines
1.2 KiB
Diff
17 lines
1.2 KiB
Diff
diff --git a/src/solid/devices/backends/fstab/fstabhandling.cpp b/src/solid/devices/backends/fstab/fstabhandling.cpp
|
|
index ac2a628..7ee46cc 100644
|
|
--- a/src/solid/devices/backends/fstab/fstabhandling.cpp
|
|
+++ b/src/solid/devices/backends/fstab/fstabhandling.cpp
|
|
@@ -275,7 +275,11 @@ bool Solid::Backends::Fstab::FstabHandling::callSystemCommand(const QString &com
|
|
const QObject *receiver,
|
|
std::function<void(QProcess *)> callback)
|
|
{
|
|
- static const QStringList searchPaths{QStringLiteral("/sbin"), QStringLiteral("/bin"), QStringLiteral("/usr/sbin"), QStringLiteral("/usr/bin")};
|
|
+ static const QStringList searchPaths{QStringLiteral("/run/wrappers/bin"),
|
|
+ QStringLiteral("/sbin"),
|
|
+ QStringLiteral("/bin"),
|
|
+ QStringLiteral("/usr/sbin"),
|
|
+ QStringLiteral("/usr/bin")};
|
|
static const QString joinedPaths = searchPaths.join(QLatin1Char(':'));
|
|
const QString exec = QStandardPaths::findExecutable(commandName, searchPaths);
|
|
if (exec.isEmpty()) {
|