mirror of https://github.com/martanne/abduco
Make default command configurable via config.def.h
This commit is contained in:
parent
42bb83bbb6
commit
25d9df6fea
2
abduco.c
2
abduco.c
|
|
@ -576,7 +576,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
char *default_cmd[4] = { "/bin/sh", "-c", getenv("ABDUCO_CMD"), NULL };
|
char *default_cmd[4] = { "/bin/sh", "-c", getenv("ABDUCO_CMD"), NULL };
|
||||||
if (!default_cmd[2]) {
|
if (!default_cmd[2]) {
|
||||||
default_cmd[0] = "dvtm";
|
default_cmd[0] = ABDUCO_CMD;
|
||||||
default_cmd[1] = NULL;
|
default_cmd[1] = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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('\\');
|
static char KEY_DETACH = CTRL('\\');
|
||||||
|
/* redraw key to send a SIGWINCH signal to underlying process (unused by default) */
|
||||||
static char KEY_REDRAW = 0;
|
static char KEY_REDRAW = 0;
|
||||||
|
|
||||||
/* Where to place the "abduco" directory storing all session socket files.
|
/* Where to place the "abduco" directory storing all session socket files.
|
||||||
* The first directory to succeed is used. */
|
* The first directory to succeed is used. */
|
||||||
static struct Dir {
|
static struct Dir {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue