modify filtering

This commit is contained in:
piotr
2023-02-14 16:01:25 +01:00
parent 93e8408fb9
commit 511920482a

View File

@@ -32,9 +32,8 @@ 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'] not in pids:
processes[proc.info['pid']] = proc.info
for child in scrolled_window.get_children():