mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-06 09:07:13 -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)
|
stdout=PIPE).stdout)
|
||||||
Popen("sleep 30; printf '' | pbcopy", shell=True)
|
Popen("sleep 30; printf '' | pbcopy", shell=True)
|
||||||
# Termux (Android) clipboard detection
|
# Termux (Android) clipboard detection
|
||||||
elif exists("/data/data/com.termux"):
|
elif isdir("/data/data/com.termux"):
|
||||||
run(('termux-clipboard-set', _copy_line[_index]))
|
run(('termux-clipboard-set', _copy_line[_index]))
|
||||||
Popen("sleep 30; termux-clipboard-set ''", shell=True)
|
Popen("sleep 30; termux-clipboard-set ''", shell=True)
|
||||||
# X11 clipboard detection
|
# X11 clipboard detection
|
||||||
|
|||||||
Reference in New Issue
Block a user