Make default command configurable via config.def.h

This commit is contained in:
Marc André Tanner 2016-01-09 11:53:52 +01:00
parent 42bb83bbb6
commit 25d9df6fea
2 changed files with 5 additions and 2 deletions

View File

@ -576,7 +576,7 @@ int main(int argc, char *argv[]) {
char *default_cmd[4] = { "/bin/sh", "-c", getenv("ABDUCO_CMD"), NULL };
if (!default_cmd[2]) {
default_cmd[0] = "dvtm";
default_cmd[0] = ABDUCO_CMD;
default_cmd[1] = NULL;
}

View File

@ -1,6 +1,9 @@
/* default command to execute if non is given and $ABDUCO_CMD is unset */
#define ABDUCO_CMD "dvtm"
/* default detach key, can be overriden at run time using -e option */
static char KEY_DETACH = CTRL('\\');
/* redraw key to send a SIGWINCH signal to underlying process (unused by default) */
static char KEY_REDRAW = 0;
/* Where to place the "abduco" directory storing all session socket files.
* The first directory to succeed is used. */
static struct Dir {