reload the config after editing it through i3-nagbar

This commit is contained in:
Michael Stapelberg 2011-07-13 18:47:08 +02:00
parent 32af9d4106
commit 8c1a242f5f
1 changed files with 1 additions and 1 deletions

View File

@ -258,7 +258,7 @@ static void start_configerror_nagbar(const char *config_path) {
if (configerror_pid == 0) { if (configerror_pid == 0) {
char *editaction, char *editaction,
*pageraction; *pageraction;
if (asprintf(&editaction, TERM_EMU " -e sh -c \"${EDITOR:-vi} \"%s\"\"", config_path) == -1) if (asprintf(&editaction, TERM_EMU " -e sh -c \"${EDITOR:-vi} \"%s\" && i3-msg reload\"", config_path) == -1)
exit(1); exit(1);
if (asprintf(&pageraction, TERM_EMU " -e sh -c \"${PAGER:-less} \"%s\"\"", errorfilename) == -1) if (asprintf(&pageraction, TERM_EMU " -e sh -c \"${PAGER:-less} \"%s\"\"", errorfilename) == -1)
exit(1); exit(1);