1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-06 02:23:59 +00:00

1. Removed debug line from user-sessions

2. Added XKB extension support
3. Added linux support for SCROLL/NUM/CAPS
This commit is contained in:
Bryan Roe
2022-02-28 12:31:00 -08:00
parent 36ff9661e1
commit 532d163727
9 changed files with 191 additions and 38 deletions

View File

@@ -251,7 +251,31 @@ function monitorinfo()
catch(xx)
{
}
}
if (!this.Location_X11KB)
{
var xkbinfo = getLibInfo('libxkbfile');
for (ix in xkbinfo)
{
if (xkbinfo.length == 1 || xkbinfo[ix].hwcap == "0")
{
try
{
Object.defineProperty(this, 'Location_X11KB', { value: xkbinfo[ix].path });
break;
}
catch (ex)
{
}
}
}
try
{
if (process.env['Location_X11KB']) { Object.defineProperty(this, 'Location_X11KB', { value: process.env['Location_X11KB'] }); }
}
catch (xx)
{
}
}
};
}

View File

@@ -845,7 +845,8 @@ function UserSessions()
child.stdin.write('printf "]";');
child.stdin.write("}'\nexit\n");
child.waitExit();
console.log(child.stdout.str);
console.info1(child.stdout.str);
var info1 = JSON.parse(child.stdout.str);
var sids = [];
var i;