depot/third_party/nixpkgs/pkgs/kde/plasma/plasma-disks/smartctl-path.patch
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

13 lines
500 B
Diff

diff --git a/src/helper.cpp b/src/helper.cpp
index 102ebc5..4cde9da 100644
--- a/src/helper.cpp
+++ b/src/helper.cpp
@@ -69,7 +69,7 @@ ActionReply SMARTHelper::smartctl(const QVariantMap &args)
// PATH is super minimal when invoked through dbus
setenv("PATH", "/usr/sbin:/sbin:/usr/local/sbin", 1);
- const QString command = QStringLiteral("smartctl");
+ const QString command = QStringLiteral("@smartctl@");
const QString all = QStringLiteral("--all");
// JSON output.