From c80e5d45b719cf0a769410ecd90fb0156394d322 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 24 Feb 2019 20:42:00 +0100 Subject: tdm: Do not run tdekbdledsync on remote displays. This relates to bug 1834. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- tdm/kfrontend/kgapp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tdm/kfrontend/kgapp.cpp b/tdm/kfrontend/kgapp.cpp index 197732e17..67178cc05 100644 --- a/tdm/kfrontend/kgapp.cpp +++ b/tdm/kfrontend/kgapp.cpp @@ -250,7 +250,8 @@ kg_main( const char *argv0 ) delete tsak; } - if (trinity_desktop_synchronize_keyboard_lights) { + if (trinity_desktop_synchronize_keyboard_lights && + TQString(getenv("DISPLAY")).startsWith(":")) { kbdl = new TDEProcess; *kbdl << TQCString( argv0, strrchr( argv0, '/' ) - argv0 + 2 ) + "tdekbdledsync"; kbdl->start(); -- cgit v1.2.1