summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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---------------#