mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-17 08:43:21 +00:00
Updated process-manager to support an options object, for search
Added win-utils to provide windows specific helper methods. Added ability to set/query system taskbar autohide on Windows
This commit is contained in:
@@ -350,7 +350,7 @@ function processManager() {
|
||||
};
|
||||
}
|
||||
}
|
||||
this.getProcessEx = function getProcessEx(cmd)
|
||||
this.getProcessEx = function getProcessEx(cmd, options)
|
||||
{
|
||||
if (process.platform == 'win32')
|
||||
{
|
||||
@@ -362,7 +362,10 @@ function processManager() {
|
||||
{
|
||||
if(j[i].cmd.toLowerCase() == cmd.toLowerCase())
|
||||
{
|
||||
result.push(j[i].pid);
|
||||
if (options == null || options.path.toLowerCase() == j[i].path.toLowerCase())
|
||||
{
|
||||
result.push(j[i].pid);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user