modify filtering

This commit is contained in:
piotr
2023-02-14 14:47:09 +01:00
parent 173b254fd9
commit 93e8408fb9

View File

@@ -32,8 +32,9 @@ def list_processes(widget):
user = os.getenv('USER')
for proc in psutil.process_iter(['pid', 'ppid', 'name', 'username']):
print(proc.info['ppid'])
if proc.info['username'] == os.getenv('USER') or not common_settings["processes-own-only"]:
# if proc.info['ppid'] == 1
# if proc.info['ppid'] == 1:
processes[proc.info['pid']] = proc.info
for child in scrolled_window.get_children():