20 lines
594 B
Diff
20 lines
594 B
Diff
--- a/kill.c
|
|
+++ b/kill.c
|
|
@@ -153,7 +153,7 @@ static void notify_spawn_subprocess(const char* script, char* const argv[], cons
|
|
}
|
|
|
|
debug("%s: exec %s\n", __func__, script);
|
|
- execv(script, argv);
|
|
+ execvp(script, argv);
|
|
warn("%s: exec %s failed: %s\n", __func__, script, strerror(errno));
|
|
exit(1);
|
|
}
|
|
@@ -177,7 +177,7 @@ static void notify_dbus(const char* body)
|
|
body2,
|
|
NULL
|
|
};
|
|
- const char* dbus_send_path = "/usr/bin/dbus-send";
|
|
+ const char* dbus_send_path = "dbus-send";
|
|
notify_spawn_subprocess(dbus_send_path, argv, NULL, 0);
|
|
}
|