mirror of
https://github.com/HorlogeSkynet/archey4
synced 2025-04-27 04:00:16 +02:00
Get a list of processes that actually works.
This commit is contained in:
parent
c86576973c
commit
0b79c4fb5f
@ -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---------------#
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user