port-jobs: Removed comments added by CLIPBOARD.py LINUX

Former-commit-id: 49aa9c01d5ed6b8e5863bf4a071f70c2ae5c8fd5
Former-commit-id: 1cb19b41d438ab2f3a8423ced0c4cc99ae3168ab
This commit is contained in:
2023-04-16 14:34:58 -04:00
parent 006f30a26c
commit ce928aba57
+2 -2
View File
@@ -25,10 +25,10 @@ if len(arguments) > 0:
.replace('%', '%%')], stdout=PIPE).stdout)
Popen("sleep 30; printf '' | xclip -sel c", shell=True)"""
elif arguments[0] == 'LINUX':
replacement = """if 'WAYLAND_DISPLAY' in environ: # Wayland clipboard detection
replacement = """if 'WAYLAND_DISPLAY' in environ:
run(['wl-copy', _copy_line[_index].rstrip()])
Popen('sleep 30; wl-copy -c', shell=True)
else: # X11 clipboard detection
else:
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)"""