From 8e26916bd743cef6a124e0536e38644525213105 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Fri, 19 May 2023 13:57:41 -0400 Subject: [PATCH] Improve Termux clipboard detection method Former-commit-id: 44ca402d01feb5aad992a77e781bc00568018e25 Former-commit-id: 0b149749308c365c891077f6f85dd5ff66212319 --- lib/sshyp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index 485c177..035e1ce 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -655,7 +655,7 @@ def copy_data(): stdout=PIPE).stdout) Popen("sleep 30; printf '' | pbcopy", shell=True) # Termux (Android) clipboard detection - elif exists("/data/data/com.termux"): + elif isdir("/data/data/com.termux"): run(('termux-clipboard-set', _copy_line[_index])) Popen("sleep 30; termux-clipboard-set ''", shell=True) # X11 clipboard detection