diff options
author | David Vazgenovich Shakaryan <david@rawr.am> | 2010-11-17 22:19:37 -0800 |
---|---|---|
committer | David Vazgenovich Shakaryan <david@rawr.am> | 2010-11-17 22:19:37 -0800 |
commit | 0b79c4fb5fa4b880b95451d90046ead8dc2699e5 (patch) | |
tree | 25f6858112af23b5f8b4d362d5335a359f27d1d4 | |
parent | c86576973cc2a1fca3a83b6ab55e25b2f4d26790 (diff) |
Get a list of processes that actually works.
-rw-r--r-- | archey.new | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -104,7 +104,8 @@ logosDict = {'Arch Linux': '''{color[1]} \x1b[0m''' } -processes = Popen(['ps', '-u', getuser()],stdout=PIPE).communicate()[0].split(b'\n') +processes = str(subprocess.check_output(('ps', '-u', getuser(), '-o', 'comm', + '--no-headers')), encoding='utf8').rstrip('\n').split('\n') #---------------Classes---------------# |