summaryrefslogtreecommitdiffstats
path: root/tdm
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-24 20:42:00 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-24 20:43:43 +0100
commit5b65df750323ce0d213495cc0eb254bd4da80229 (patch)
treec3896a9e9b8f1663b49025707f93bfcd148bdf01 /tdm
parente1f38c3d4eb43decc068121a844d25e63a460511 (diff)
downloadtdebase-5b65df750323ce0d213495cc0eb254bd4da80229.tar.gz
tdebase-5b65df750323ce0d213495cc0eb254bd4da80229.zip
tdm: Do not run tdekbdledsync on remote displays.
This relates to bug 1834. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit c80e5d45b719cf0a769410ecd90fb0156394d322)
Diffstat (limited to 'tdm')
-rw-r--r--tdm/kfrontend/kgapp.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tdm/kfrontend/kgapp.cpp b/tdm/kfrontend/kgapp.cpp
index ffa2bff7c..b1495c8af 100644
--- a/tdm/kfrontend/kgapp.cpp
+++ b/tdm/kfrontend/kgapp.cpp
@@ -247,7 +247,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();