Agent has new KVM detection logic, which retries every 10 seconds for 3 minutes if XLIBS are detected, but X server is not. Meshcore now hooks the event, so if detection is found, the server is updated.

Bryan Roe committed Apr 23, 2020 at 22:42 UTC 2993736b86b9948b7134e0e41b7aebf599d34fa0
1 file changed +15 -1
agents/meshcore.js
+15 -1
@@ -326,7 +326,21 @@ function createMeshCore(agent) {
326 childProcess = require('child_process');
327 if (mesh.hasKVM == 1) { // if the agent is compiled with KVM support
328 // Check if this computer supports a desktop
329 - try { if ((process.platform == 'win32') || (process.platform == 'darwin') || (require('monitor-info').kvm_x11_support)) { meshCoreObj.caps |= 1; } } catch (ex) { }
329 + try
330 + {
331 + if ((process.platform == 'win32') || (process.platform == 'darwin') || (require('monitor-info').kvm_x11_support))
332 + {
333 + meshCoreObj.caps |= 1;
334 + }
335 + else if(process.platform == 'linux' || process.platform == 'freebsd')
336 + {
337 + require('monitor-info').on('kvmSupportDetected', function (value)
338 + {
339 + meshCoreObj.caps |= 1;
340 + mesh.SendCommand(meshCoreObj);
341 + });
342 + }
343 + } catch (ex) { }
344 }
345 } else {
346 // Running in nodejs