From 8e97cae1c0d4c9fe99b015532fafc4c32e22cf08 Mon Sep 17 00:00:00 2001 From: ntorresalberto <63748204+ntorresalberto@users.noreply.github.com> Date: Mon, 4 Mar 2024 14:59:06 +0100 Subject: [PATCH] conky module: workaround upstream issues/1479 (#2238) Co-authored-by: lasers --- py3status/modules/conky.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/py3status/modules/conky.py b/py3status/modules/conky.py index 92cce4ac26..6b6a4aad1c 100644 --- a/py3status/modules/conky.py +++ b/py3status/modules/conky.py @@ -384,7 +384,7 @@ def post_config_hook(self): def _cleanup(self): self.process.kill() - Path(self.tmpfile).unlink() + Path(self.tmpfile.name).unlink() self.py3.update() def _start_loop(self): @@ -393,6 +393,9 @@ def _start_loop(self): while True: line = self.process.stdout.readline().decode() if self.process.poll() is not None or "conky:" in line: + # workaround to https://github.com/brndnmtthws/conky/issues/1479 + if "conky: invalid setting of type 'table'" in line: + continue raise Exception(line) if self.line != line: self.line = line