mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-20 18:23:21 +00:00
Added support for mesage-box to display on lock/login screen on Windows
This commit is contained in:
@@ -156,8 +156,15 @@ function childContainer()
|
||||
if ((tsid = require('user-sessions').getProcessOwnerName(process.pid).tsid) == 0)
|
||||
{
|
||||
// We are running as LocalSystem
|
||||
child_options.uid = options.uid;
|
||||
child_options.type = require('child_process').SpawnTypes.USER;
|
||||
if (process.platform == 'win32' && options.uid == -1)
|
||||
{
|
||||
child_options.type = require('child_process').SpawnTypes.WINLOGON;
|
||||
}
|
||||
else
|
||||
{
|
||||
child_options.uid = options.uid;
|
||||
child_options.type = require('child_process').SpawnTypes.USER;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user