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:
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user