mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-30 05:46:31 -04:00
Fixed use of multiple versions of Powershell under WSL (now uses only system-provided executable)
Former-commit-id: b804ff1921655a73423b67332385f7dbf5a20319 Former-commit-id: 8dfced454233d135877582617c12ec0615ba73ca
This commit is contained in:
+1
-1
@@ -650,7 +650,7 @@ def copy_data():
|
||||
# WSL clipboard detection
|
||||
if 'WSL_DISTRO_NAME' in environ:
|
||||
run(('powershell.exe', '-c', "Set-Clipboard '" + _copy_line[_index].replace("'", "''") + "'"))
|
||||
Popen("sleep 30; pwsh.exe -c 'echo \"\" | Set-Clipboard'", shell=True)
|
||||
Popen("sleep 30; powershell.exe -c 'echo \"\" | Set-Clipboard'", shell=True)
|
||||
# Wayland clipboard detection
|
||||
elif 'WAYLAND_DISPLAY' in environ:
|
||||
run(('wl-copy', _copy_line[_index]))
|
||||
|
||||
Reference in New Issue
Block a user