tdm: Do not run tdekbdledsync on remote displays.

This relates to bug 1834.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/30/head
Slávek Banko 6 years ago
parent a779018b79
commit c80e5d45b7
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

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

Loading…
Cancel
Save