aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorsin <sin@2f30.org>2019-08-22 15:48:59 +0100
committersin <sin@2f30.org>2019-08-22 17:21:29 +0100
commitabce18b913ffbe3caf85bca368757e306a9d2b6e (patch)
tree5f816279932e80b5365ad134c0860bdcd023baba /noice.c
parent022e61ed65c4b5363e9cd8767676816834c8a9fb (diff)
downloadnoice-abce18b913ffbe3caf85bca368757e306a9d2b6e.tar.gz
Allow overriding plumber via NOPEN env variable
Diffstat (limited to 'noice.c')
-rw-r--r--noice.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/noice.c b/noice.c
index 1b60370..cf3afcf 100644
--- a/noice.c
+++ b/noice.c
@@ -650,10 +650,11 @@ nochange:
goto begin;
case S_IFREG:
exitcurses();
- r = spawnlp(path, NOPENCMD, NOPENCMD, newpath, (void *)0);
+ run = xgetenv("NOPEN", NOPENCMD);
+ r = spawnlp(path, run, run, newpath, (void *)0);
initcurses();
if (r == -1) {
- printmsg("failed to execute " NOPENCMD);
+ printmsg("Failed to execute plumber");
goto nochange;
}
continue;
Un proyecto texto-plano.xyz