From 6df30f3f10edd5fab82bf2eb57ce47430124ac54 Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 13 Jul 2016 17:27:40 +0200 Subject: i3/conky: Suppress output to stderr i3bar seems to close the FD for stderr, so conky will get a broken pipe error when writing error messages to stderr. Of course in the long run it's better to log these errors somewhere where they can be inspected later. But for now, it's better than terminating i3bar altogether, because that's really annoying ;-) Signed-off-by: aszlig --- modules/user/aszlig/services/i3/conky.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/user/aszlig/services/i3/conky.nix b/modules/user/aszlig/services/i3/conky.nix index 76c61160..93e554cc 100644 --- a/modules/user/aszlig/services/i3/conky.nix +++ b/modules/user/aszlig/services/i3/conky.nix @@ -95,7 +95,8 @@ let primary_netdev="$(echo "$raw_netinfo" | \ ${pkgs.gnused}/bin/sed -nre 's/^.*dev *([^ ]+).*$/\1/p')" - ${conky}/bin/conky -c "${baseConfig}" -t "${text}" + # FIXME: Log stderr to the journal! + ${conky}/bin/conky -c "${baseConfig}" -t "${text}" 2> /dev/null ''; in { -- cgit 1.4.1