mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 08:37:14 -04:00
Fixed FreeBSD package using Termux clipboard
Former-commit-id: b54de0022328504eeaee74e31a495c69f7a782c8 Former-commit-id: d18f505374d1d10665d418f77642aa68428d3b23
This commit is contained in:
+2
-2
@@ -369,8 +369,8 @@ printf "/usr/bin/sshyp
|
|||||||
# START PORT
|
# START PORT
|
||||||
cp -r lib/. port-jobs/working/
|
cp -r lib/. port-jobs/working/
|
||||||
cd port-jobs
|
cd port-jobs
|
||||||
./CLIPTOOL.py BSD
|
./CLIPTOOL.py LINUX
|
||||||
./CLIPBOARD.py TERMUX
|
./CLIPBOARD.py LINUX
|
||||||
./UNAME.py TMP
|
./UNAME.py TMP
|
||||||
./COMMENTS.py ALL
|
./COMMENTS.py ALL
|
||||||
./BLANKS.py
|
./BLANKS.py
|
||||||
|
|||||||
@@ -20,10 +20,6 @@ if len(arguments) > 0:
|
|||||||
elif arguments[0] == 'TERMUX':
|
elif arguments[0] == 'TERMUX':
|
||||||
replacement = """run(['termux-clipboard-set', _copy_line[_index].rstrip()])
|
replacement = """run(['termux-clipboard-set', _copy_line[_index].rstrip()])
|
||||||
Popen("sleep 30; termux-clipboard-set ''", shell=True)"""
|
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':
|
elif arguments[0] == 'LINUX':
|
||||||
replacement = """if 'WAYLAND_DISPLAY' in environ:
|
replacement = """if 'WAYLAND_DISPLAY' in environ:
|
||||||
run(['wl-copy', _copy_line[_index].rstrip()])
|
run(['wl-copy', _copy_line[_index].rstrip()])
|
||||||
|
|||||||
Reference in New Issue
Block a user