From 5fdeaa35316ae3a5acc7c78d9df53d801d68f015 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 1 Jan 2017 13:58:27 +0100
Subject: wmstatus: fix invocation of "brightness"
---
wmstatus.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/wmstatus.c b/wmstatus.c
index 23521b5..1216b85 100644
--- a/wmstatus.c
+++ b/wmstatus.c
@@ -2078,6 +2078,10 @@ spawn (struct app_context *ctx, char *argv[])
if (ctx->nut_client.socket != -1)
posix_spawn_file_actions_addclose (&actions, ctx->nut_client.socket);
+ // That would mess up our JSON
+ posix_spawn_file_actions_addopen
+ (&actions, STDOUT_FILENO, "/dev/null", O_WRONLY, 0);
+
posix_spawnattr_t attr;
posix_spawnattr_init (&attr);
posix_spawnattr_setpgroup (&attr, 0);
--
cgit v1.2.3-70-g09d2