38febc9b19
OK jasper@
25 lines
1.3 KiB
Plaintext
25 lines
1.3 KiB
Plaintext
$OpenBSD: patch-src_cfgparse_y,v 1.6 2012/09/21 17:16:14 dcoppa Exp $
|
|
--- src/cfgparse.y.orig Thu Sep 20 14:33:19 2012
|
|
+++ src/cfgparse.y Thu Sep 20 14:35:04 2012
|
|
@@ -325,16 +325,16 @@ static void start_configerror_nagbar(const char *confi
|
|
/* child */
|
|
if (configerror_pid == 0) {
|
|
char *edit_command, *pager_command;
|
|
- sasprintf(&edit_command, "i3-sensible-editor \"%s\" && i3-msg reload\n", config_path);
|
|
- sasprintf(&pager_command, "i3-sensible-pager \"%s\"\n", errorfilename);
|
|
+ sasprintf(&edit_command, "/usr/bin/vi \"%s\" && i3-msg reload\n", config_path);
|
|
+ sasprintf(&pager_command, "/usr/bin/less \"%s\"\n", errorfilename);
|
|
if (!write_nagbar_script(edit_script_path, edit_command) ||
|
|
!write_nagbar_script(pager_script_path, pager_command))
|
|
return;
|
|
|
|
char *editaction,
|
|
*pageraction;
|
|
- sasprintf(&editaction, "i3-sensible-terminal -e \"%s\"", edit_script_path);
|
|
- sasprintf(&pageraction, "i3-sensible-terminal -e \"%s\"", pager_script_path);
|
|
+ sasprintf(&editaction, "${X11BASE}/bin/xterm -e \"%s\"", edit_script_path);
|
|
+ sasprintf(&pageraction, "${X11BASE}/bin/xterm -e \"%s\"", pager_script_path);
|
|
char *argv[] = {
|
|
NULL, /* will be replaced by the executable path */
|
|
"-t",
|