Skip to content

Commit

Permalink
re: workaround for conky, related to conky/issues/1479
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 Feb 29, 2024
1 parent 0fb4bf6 commit a02dc73
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions py3status/modules/conky.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,11 +392,10 @@ def _start_loop(self):
self.process = Popen(self.conky_command, stdout=PIPE, stderr=STDOUT)
while True:
line = self.process.stdout.readline().decode()
# workaround to: https://github.com/brndnmtthws/conky/issues/1479
BUG_STR= "conky: invalid setting of type 'table'"
if line.startswith(BUG_STR):
continue
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 a02dc73

Please sign in to comment.