summaryrefslogtreecommitdiff
path: root/src/debug
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-24 18:25:18 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-24 18:25:18 +0100
commita4f79dcb1101c5cbde5f503417c97f69cb24651e (patch)
tree1131b5c0fb88528ccc94af46be1340c3c6f8f6ce /src/debug
parentccbc0e4a2e4b1bcd9966b59edfbb0aaf6c27a52d (diff)
fix hyprctl .socket
Diffstat (limited to 'src/debug')
-rw-r--r--src/debug/HyprCtl.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp
index e4aee749..59f1386c 100644
--- a/src/debug/HyprCtl.cpp
+++ b/src/debug/HyprCtl.cpp
@@ -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);