]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: run nagbar commands through sh(1) (Thanks Tucos)
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 11 Jul 2011 14:51:57 +0000 (16:51 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 11 Jul 2011 14:51:57 +0000 (16:51 +0200)
src/cfgparse.y

index 64be79084a28fba7b0450ebdcc66f74c1f437e51..09201c71370bedc4dedede449ccf7fa60d7ca0ba 100644 (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 */