userspace: Remove start-gui from shell builtins and make it an alias
This makes way more sense :D
This commit is contained in:
parent
6fd76e8d1e
commit
3e68981b0b
Binary file not shown.
|
@ -720,21 +720,6 @@ static void install_builtin_commands()
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
));
|
));
|
||||||
|
|
||||||
MUST(s_builtin_commands.emplace("start-gui"_sv,
|
|
||||||
[](const SingleCommand&, FILE*, int, int) -> int
|
|
||||||
{
|
|
||||||
const pid_t pid = fork();
|
|
||||||
if (pid == -1)
|
|
||||||
return 1;
|
|
||||||
if (pid == 0)
|
|
||||||
execl("/bin/WindowServer", "WindowServer", NULL);
|
|
||||||
if (fork() == 0)
|
|
||||||
execl("/bin/Terminal", "Terminal", NULL);
|
|
||||||
waitpid(pid, nullptr, 0);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static pid_t execute_command_no_wait(const SingleCommand& command, int fd_in, int fd_out, pid_t pgrp, bool background)
|
static pid_t execute_command_no_wait(const SingleCommand& command, int fd_in, int fd_out, pid_t pgrp, bool background)
|
||||||
|
|
Loading…
Reference in New Issue