Fixed FreeBSD package using Termux clipboard

Former-commit-id: b54de0022328504eeaee74e31a495c69f7a782c8
Former-commit-id: d18f505374d1d10665d418f77642aa68428d3b23
This commit is contained in:
2023-05-11 13:02:11 -04:00
parent a89b201fc7
commit 50c4aa9a96
2 changed files with 2 additions and 6 deletions
+2 -2
View File
@@ -369,8 +369,8 @@ printf "/usr/bin/sshyp
# START PORT
cp -r lib/. port-jobs/working/
cd port-jobs
./CLIPTOOL.py BSD
./CLIPBOARD.py TERMUX
./CLIPTOOL.py LINUX
./CLIPBOARD.py LINUX
./UNAME.py TMP
./COMMENTS.py ALL
./BLANKS.py
-4
View File
@@ -20,10 +20,6 @@ if len(arguments) > 0:
elif arguments[0] == 'TERMUX':
replacement = """run(['termux-clipboard-set', _copy_line[_index].rstrip()])
Popen("sleep 30; termux-clipboard-set ''", shell=True)"""
elif arguments[0] == 'BSD':
replacement = """run(['xclip', '-sel', 'c'], stdin=Popen(['printf', _copy_line[_index].rstrip().replace('\\', '\\\\')
.replace('%', '%%')], stdout=PIPE).stdout)
Popen("sleep 30; printf '' | xclip -sel c", shell=True)"""
elif arguments[0] == 'LINUX':
replacement = """if 'WAYLAND_DISPLAY' in environ:
run(['wl-copy', _copy_line[_index].rstrip()])