Fixed xclip throwing errors on FreeBSD

Former-commit-id: 65b466c0598f2194d452c0897ffa9eeb7ec3b281
Former-commit-id: 51ad92728be141113047bb25fb8841d141d545e6
This commit is contained in:
2023-09-26 18:37:42 -04:00
parent e010180219
commit 30afbafcbf
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -30,10 +30,10 @@ if len(arguments) > 0:
Popen(f"sleep 30; test \\'{_hash.hexdigest() + 2*' ' + '-'}\\' = \\"$(printf \\"$(wl-paste)\\" | sha512sum)\\" "
"&& wl-copy -c", shell=True)
else:
run(('xclip', '-se', 'c'), stdin=Popen(('printf', _copy_subject
run(('xclip', '-sel', 'c'), stdin=Popen(('printf', _copy_subject
.replace('\\\\\\', '\\\\\\\\\\\\\\').replace('%', '%%')), stdout=PIPE).stdout)
Popen(f"sleep 30; test \\'{_hash.hexdigest() + 2*' ' + '-'}\\' = \\"$(printf \\"$(xclip -o -se c)\\" | sha512sum)\\" "
"&& xclip -i /dev/null -se c", shell=True)"""
Popen(f"sleep 30; test \\'{_hash.hexdigest() + 2*' ' + '-'}\\' = \\"$(printf \\"$(xclip -o -sel c)\\" | sha512sum)\\" "
"&& xclip -i /dev/null -sel c", shell=True)"""
else:
s_exit()