mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 07:05:58 +01:00
fix hyprctl .socket
This commit is contained in:
parent
ccbc0e4a2e
commit
a4f79dcb11
1 changed files with 3 additions and 1 deletions
|
@ -122,8 +122,10 @@ void HyprCtl::startHyprCtlSocket() {
|
|||
|
||||
Debug::log(LOG, "Hypr socket started on port %i", SERVERADDRESS.sin_port);
|
||||
|
||||
std::string cmd = "rm -f /tmp/hypr/.socket && echo \"" + std::to_string(SERVERADDRESS.sin_port) + "\" > /tmp/hypr/.socket";
|
||||
std::string cmd = "rm -f /tmp/hypr/.socket";
|
||||
system(cmd.c_str()); // forgive me for using system() but it works and it doesnt matter here that much
|
||||
cmd = "echo \"" + std::to_string(SERVERADDRESS.sin_port) + "\" > /tmp/hypr/.socket";
|
||||
system(cmd.c_str());
|
||||
|
||||
while(1) {
|
||||
const auto ACCEPTEDCONNECTION = accept(SOCKET, (sockaddr*)&clientAddress, &clientSize);
|
||||
|
|
Loading…
Reference in a new issue