From: Michael Stapelberg Date: Mon, 11 Jul 2011 14:51:57 +0000 (+0200) Subject: Bugfix: run nagbar commands through sh(1) (Thanks Tucos) X-Git-Tag: tree-pr4~38 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=897b53f1c28d10564c401bfe467b98f60beed2bc;p=i3%2Fi3 Bugfix: run nagbar commands through sh(1) (Thanks Tucos) --- diff --git a/src/cfgparse.y b/src/cfgparse.y index 64be7908..09201c71 100644 --- a/src/cfgparse.y +++ b/src/cfgparse.y @@ -258,9 +258,9 @@ static void start_configerror_nagbar(const char *config_path) { if (configerror_pid == 0) { char *editaction, *pageraction; - if (asprintf(&editaction, TERM_EMU " -e ${EDITOR:-vi} \"%s\"", config_path) == -1) + if (asprintf(&editaction, TERM_EMU " -e sh -c \"${EDITOR:-vi} \"%s\"\"", config_path) == -1) exit(1); - if (asprintf(&pageraction, TERM_EMU " -e ${PAGER:-less} \"%s\"", errorfilename) == -1) + if (asprintf(&pageraction, TERM_EMU " -e sh -c \"${PAGER:-less} \"%s\"\"", errorfilename) == -1) exit(1); char *argv[] = { NULL, /* will be replaced by the executable path */