mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-31 22:36:31 -04:00
Improve Termux clipboard detection method
Former-commit-id: 44ca402d01feb5aad992a77e781bc00568018e25 Former-commit-id: 0b149749308c365c891077f6f85dd5ff66212319
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user