aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
-rw-r--r--swaybar/main.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/README.md b/README.md
index e087d78e..b12f9a62 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,7 @@ Run these commands:
mkdir build
cd build
- cmake -DCMAKE_BUILD_TYPE=Release ..
+ cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_SYSCONFDIR=/etc ..
make
sudo make install
diff --git a/swaybar/main.c b/swaybar/main.c
index ac3b9475..49aa08cd 100644
--- a/swaybar/main.c
+++ b/swaybar/main.c
@@ -400,6 +400,7 @@ void bar_ipc_init(int outputi, const char *bar_id) {
const char *subscribe_json = "[ \"workspace\" ]";
len = strlen(subscribe_json);
res = ipc_single_command(ipc_listen_socketfd, IPC_SUBSCRIBE, subscribe_json, &len);
+ free(res);
ipc_update_workspaces();
}