Browse Source

a quick and very ugly fix for pacman -Qu

master
Von Random 5 years ago
parent
commit
e84936b3f8
  1. 3
      plugins/pacman.py

3
plugins/pacman.py

@ -18,5 +18,6 @@ class PluginThread(plugins.PluginThreadCommon):
self.status['urgent'] = False
def main(self):
updates = subprocess.getoutput('/usr/bin/pacman -Qu').count("\n")
# TODO: this is an ugly hack, fix it with subprocess.Popen asap
updates = subprocess.getoutput('/usr/bin/pacman -Qu').count(" -> ")
self.format_status(updates)

Loading…
Cancel
Save