summaryrefslogtreecommitdiffstats
path: root/tdm/kfrontend/kgapp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdm/kfrontend/kgapp.cpp')
-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();