1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-03 00:53:41 +00:00

Updated support for default LightDM configuration

This commit is contained in:
Bryan Roe
2022-01-17 13:36:04 -08:00
parent 538e01afad
commit b8a984bf99
2 changed files with 11 additions and 2 deletions

View File

@@ -638,6 +638,8 @@ function monitorinfo()
{
}
console.info1('Detected PIDS => ' + JSON.stringify(pids));
if (pids != null)
{
var e, i;
@@ -647,10 +649,17 @@ function monitorinfo()
if (e.XAUTHORITY)
{
ret.xauthority = e.XAUTHORITY;
console.info1(' => Setting Xauthority: ' + e.XAUTHORITY + ' from PID: ' + pids[i]);
break;
}
}
}
}
// Still no Xauthority found, so lets check the system location for lightdm
if(require('fs').existsSync('/run/lightdm/' + uname + '/xauthority'))
{
ret.xauthority = '/run/lightdm/' + uname + '/xauthority';
}
}
if (ret.display == '' && ttys.length > 0)
{