From 34712eceaae98f3f4bdebb13bc6d21db5c2c652e Mon Sep 17 00:00:00 2001 From: Dylan Lloyd Date: Tue, 21 Feb 2012 14:19:29 -0500 Subject: [PATCH] s:execl:execlp: --- notify-display | 4 ---- server.c | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) delete mode 100755 notify-display diff --git a/notify-display b/notify-display deleted file mode 100755 index 433bac1..0000000 --- a/notify-display +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -DISPLAY=:0 -notify-send -t 0 -i ~/.irssi/irssi.png "$1" "$2" diff --git a/server.c b/server.c index 6276c9f..527d737 100644 --- a/server.c +++ b/server.c @@ -126,7 +126,7 @@ int main(void) printf("irssi-notify: recieved '%s'\n", buf); if (!fork()){ setenv("DISPLAY", ":0", 1); // doesn't seem to be doing the trick - execl("notify-display", + execlp("notify-display", "notify-display", buf, NULL); // the first argument to execl is the command, the second is the first argument // passed to the program ($0), customarily the evocation of the command -- 2.30.2