summaryrefslogtreecommitdiff
path: root/x11-wm/hyprland/files/patch-hyprctl_main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/hyprland/files/patch-hyprctl_main.cpp')
-rw-r--r--x11-wm/hyprland/files/patch-hyprctl_main.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/x11-wm/hyprland/files/patch-hyprctl_main.cpp b/x11-wm/hyprland/files/patch-hyprctl_main.cpp
new file mode 100644
index 000000000000..25fc645e01a9
--- /dev/null
+++ b/x11-wm/hyprland/files/patch-hyprctl_main.cpp
@@ -0,0 +1,11 @@
+--- hyprctl/main.cpp.orig 2025-07-25 09:09:59 UTC
++++ hyprctl/main.cpp
+@@ -268,7 +268,7 @@ int requestIPC(std::string_view filename, std::string_
+ sockaddr_un serverAddress = {0};
+ serverAddress.sun_family = AF_UNIX;
+
+- std::string socketPath = getRuntimeDir() + "/" + instanceSignature + "/" + filename;
++ std::string socketPath = getRuntimeDir() + "/" + instanceSignature + "/" + std::string(filename);
+
+ strncpy(serverAddress.sun_path, socketPath.c_str(), sizeof(serverAddress.sun_path) - 1);
+