summaryrefslogtreecommitdiffstats
path: root/tdm/kfrontend
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:07 +0100
commitc80e5d45b719cf0a769410ecd90fb0156394d322 (patch)
tree7dea1e6a4a6e2c06dc55a69c7efa8a31ace2e6db /tdm/kfrontend
parenta779018b79f9ade83537978e32419da40a136337 (diff)
downloadtdebase-c80e5d45b719cf0a769410ecd90fb0156394d322.tar.gz
tdebase-c80e5d45b719cf0a769410ecd90fb0156394d322.zip
tdm: Do not run tdekbdledsync on remote displays.
This relates to bug 1834. Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'tdm/kfrontend')
-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 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();