mirror of
https://github.com/rwinkhart/sshyp-labs.git
synced 2026-08-27 20:36:31 -04:00
sshyp-mfa - Use printf for X11 clipboard
This commit is contained in:
@@ -87,7 +87,7 @@ if __name__ == '__main__':
|
|||||||
elif Path("/data/data/com.termux").exists(): # Termux (Android) clipboard detection
|
elif Path("/data/data/com.termux").exists(): # Termux (Android) clipboard detection
|
||||||
run(('termux-clipboard-set', _mfa_key))
|
run(('termux-clipboard-set', _mfa_key))
|
||||||
else: # X11 clipboard detection
|
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)
|
sleep(1)
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('\n')
|
print('\n')
|
||||||
|
|||||||
Reference in New Issue
Block a user