From 5ea5d4f290596405479d2e20047e6aa3d2e102da Mon Sep 17 00:00:00 2001 From: Humberto Cortez <19215259+hcortezr@users.noreply.github.com> Date: Tue, 3 Feb 2026 00:05:26 -0800 Subject: [PATCH] Change pairing check command to validate Updated the pairing check command to use 'idevicepair validate' instead of 'idevicepair pair' to avoid error -5. --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 7b3b1bc..0f6eec9 100644 --- a/main.py +++ b/main.py @@ -161,7 +161,7 @@ def on_abtdlg(self): about.destroy() def paircheck(): # Check if the device is paired already - pairchecking = subprocess.run('idevicepair pair | grep -q "SUCCESS"', shell=True) + pairchecking = subprocess.run('idevicepair validate | grep -q "SUCCESS"', shell=True) # use validate instaed of pair, pair causes error -5 if already paired if pairchecking.returncode == 0: return False else: