light-locker-settings/light-locker-settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/light-locker-settings/light-locker-settings.py b/light-locker-settings/light-locker-settings.py index 6026d90..d3dc30f 100644 --- a/light-locker-settings/light-locker-settings.py +++ b/light-locker-settings/light-locker-settings.py @@ -216,7 +216,7 @@ class LightLockerSettings: def check_running_process(self, process_name): """Return True if the specified process is active.""" # Find the process... - for pid in psutil.get_pid_list(): + for pid in psutil.pids(): try: p = psutil.Process(pid) if self.get_process_username(p) == username: @@ -231,7 +231,7 @@ class LightLockerSettings: def stop_light_locker(self): """Safely stop the light-locker process.""" # Find the process... - for pid in psutil.get_pid_list(): + for pid in psutil.pids(): try: p = psutil.Process(pid) if self.get_process_username(p) == username: