diff --git a/background.c b/background.c index a57a68c7..f4e0b924 100644 --- a/background.c +++ b/background.c @@ -106,6 +106,12 @@ int main (int argc, char ** argv) { yutani_key_bind(yctx, 't', KEY_MOD_LEFT_CTRL | KEY_MOD_LEFT_ALT, YUTANI_BIND_STEAL); + int _terminal_pid = fork(); + if (!_terminal_pid) { + char * args[] = {"/bin/terminal", NULL}; + execvp(args[0], args); + } + while (!should_exit) { yutani_msg_t * m = yutani_poll(yctx); if (m) { diff --git a/session.c b/session.c index 986b7465..0be1d5fb 100644 --- a/session.c +++ b/session.c @@ -13,11 +13,6 @@ int main(int argc, char * argv[]) { char * args[] = {"/bin/background", NULL}; execvp(args[0], args); } - int _terminal_pid = fork(); - if (!_terminal_pid) { - char * args[] = {"/bin/terminal", NULL}; - execvp(args[0], args); - } wait(NULL);