Browse Source

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 c80e5d45b7)
pull/182/head
Slávek Banko 3 years ago
parent
commit
5b65df7503
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668
  1. 3
      tdm/kfrontend/kgapp.cpp

3
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();

Loading…
Cancel
Save