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:
2023-05-25 14:33:08 -04:00
parent 669c62510a
commit fe54acd3b0
+2 -1
View File
@@ -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'