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 5 years ago
parent e1f38c3d4e
commit 5b65df7503
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -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