summary refs log tree commit diff
path: root/pkgs/os-specific/linux/earlyoom/fix-dbus-path.patch
blob: e1c10cf82f96ef7dbb8ea0125e8d71b1c54e1263 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/kill.c
+++ b/kill.c
@@ -55,7 +55,7 @@ static void notify(const char* summary, const char* body)
     }
     // Complete command line looks like this:
     // dbus-send --system / net.nuetzlich.SystemNotifications.Notify 'string:summary text' 'string:and body text'
-    execl("/usr/bin/dbus-send", "dbus-send", "--system", "/", "net.nuetzlich.SystemNotifications.Notify",
+    execlp("dbus-send", "dbus-send", "--system", "/", "net.nuetzlich.SystemNotifications.Notify",
         summary2, body2, NULL);
     warn("notify: exec failed: %s\n", strerror(errno));
     exit(1);