mirror of
https://github.com/rwinkhart/sshyp-labs.git
synced 2026-10-26 22:39:56 -04:00
sshyp-mfa - Use printf for X11 clipboard
This commit is contained in:
1 parent
8fe7675ca3
commit
c8e54cef43
1 file changed
+1
-1
@@ -87,7 +87,7 @@ if __name__ == '__main__':
|
||||
elif Path("/data/data/com.termux").exists(): # Termux (Android) clipboard detection
|
||||
run(('termux-clipboard-set', _mfa_key))
|
||||
else: # X11 clipboard detection
|
||||
run(('xclip', '-sel', 'c'), stdin=Popen(('echo', '-n', _mfa_key), stdout=PIPE).stdout)
|
||||
run(('xclip', '-sel', 'c'), stdin=Popen(('printf', _mfa_key), stdout=PIPE).stdout)
|
||||
sleep(1)
|
||||
except KeyboardInterrupt:
|
||||
print('\n')
|
||||
|
||||
Reference in new issue
Block a user