mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-28 04:46:34 -04:00
Fixed clipboard tool warning showing on platforms where it is irrelevant, such as Termux and WSL
Former-commit-id: d979f20a0d6d24bcbe59773d6cb0d0654c06443c Former-commit-id: b3168f92e537ec49d8b28e9e2fe8389672ae7ad7
This commit is contained in:
+2
-1
@@ -353,7 +353,8 @@ def initial_setup():
|
||||
|
||||
# PORT START CLIPTOOL
|
||||
# check for clipboard tool and display warning if missing
|
||||
if uname()[0] in ('Linux', 'FreeBSD'):
|
||||
if uname()[0] in ('Linux', 'FreeBSD') and not 'WSL_DISTRO_NAME' in environ \
|
||||
and not exists("/data/data/com.termux"):
|
||||
_display_server = None
|
||||
if 'WAYLAND_DISPLAY' in environ:
|
||||
_display_server, _clipboard_tool, _clipboard_package = 'Wayland', 'wl-copy', 'wl-clipboard'
|
||||
|
||||
Reference in New Issue
Block a user