diff --git a/userspace/Shell/main.cpp b/userspace/Shell/main.cpp index 1cb4844dab..6b9c217141 100644 --- a/userspace/Shell/main.cpp +++ b/userspace/Shell/main.cpp @@ -331,6 +331,17 @@ BAN::Optional execute_builtin(BAN::Vector& args, int fd_in, in while (*current) fprintf(fout, "%s\n", *current++); } + else if (args.front() == "start-gui"sv) + { + pid_t pid = fork(); + if (pid == 0) + execl("/bin/WindowServer", "WindowServer", NULL); + if (fork() == 0) + execl("/bin/test-window", "test-window", NULL); + if (fork() == 0) + execl("/bin/test-window", "test-window", NULL); + waitpid(pid, nullptr, 0); + } else if (args.front() == "page-fault-test"sv) { volatile int* ptr = nullptr;