From 93e8408fb9acbecb77c52bb886325c544f5307c6 Mon Sep 17 00:00:00 2001 From: piotr Date: Tue, 14 Feb 2023 14:47:09 +0100 Subject: [PATCH] modify filtering --- nwg_panel/processes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nwg_panel/processes.py b/nwg_panel/processes.py index 5b0f76b..6622422 100644 --- a/nwg_panel/processes.py +++ b/nwg_panel/processes.py @@ -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():