Skip to content

Commit

Permalink
conky module: workaround upstream issues/1479 (#2238)
Browse files Browse the repository at this point in the history
Co-authored-by: lasers <lasers@users.noreply.github.com>
  • Loading branch information
ntorresalberto and lasers authored Mar 4, 2024
1 parent 137201b commit 8e97cae
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion py3status/modules/conky.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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
Expand Down

0 comments on commit 8e97cae

Please sign in to comment.