mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-26 06:45:58 +01:00
fixed an oopsie
This commit is contained in:
parent
39933b61cd
commit
acb177bf4d
1 changed files with 6 additions and 1 deletions
|
@ -115,7 +115,12 @@ void handleBind(const std::string& command, const std::string& value) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void handleRawExec(const std::string& command, const std::string& args) {
|
void handleRawExec(const std::string& command, const std::string& args) {
|
||||||
exec(args.c_str());
|
// Exec in the background dont wait for it.
|
||||||
|
if (fork() == 0) {
|
||||||
|
execl("/bin/sh", "/bin/sh", "-c", args.c_str(), nullptr);
|
||||||
|
|
||||||
|
_exit(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void handleStatusCommand(const std::string& command, const std::string& args) {
|
void handleStatusCommand(const std::string& command, const std::string& args) {
|
||||||
|
|
Loading…
Reference in a new issue