nixpkgs/pkgs/kde/plasma/plasma-disks/smartctl-path.patch
K900 ce77225e21 pkgs/kde: init at 6.0.0 / 24.02.0, the Nix bits
This is the thing you want to look at.
2024-02-28 18:49:23 +03:00

14 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.