summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <david@rawr.am>2010-11-17 22:19:37 -0800
committerDavid Vazgenovich Shakaryan <david@rawr.am>2010-11-17 22:19:37 -0800
commit0b79c4fb5fa4b880b95451d90046ead8dc2699e5 (patch)
tree25f6858112af23b5f8b4d362d5335a359f27d1d4
parentc86576973cc2a1fca3a83b6ab55e25b2f4d26790 (diff)
Get a list of processes that actually works.
-rw-r--r--archey.new3
1 files changed, 2 insertions, 1 deletions
diff --git a/archey.new b/archey.new
index 362dae9..19d9926 100644
--- a/archey.new
+++ b/archey.new
@@ -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---------------#