Bugfix: run nagbar commands through sh(1) (Thanks Tucos)

This commit is contained in:
Michael Stapelberg 2011-07-11 16:51:57 +02:00
parent 429d310011
commit 897b53f1c2
1 changed files with 2 additions and 2 deletions

View File

@ -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 */