Added kill check for Parallels Acrobat Reader
This commit is contained in:
@@ -482,8 +482,19 @@ exports.kill_processes = async function ({process_name = null}) {
|
|||||||
});
|
});
|
||||||
console.log(`Killed processes matching ${process_name}`);
|
console.log(`Killed processes matching ${process_name}`);
|
||||||
|
|
||||||
|
|
||||||
if (os.platform == 'darwin') {
|
if (os.platform == 'darwin') {
|
||||||
|
if (process_name == 'Parallels:Acrobat Reader') {
|
||||||
|
// Regular expression: (Parallels).*(Acrobat Reader)
|
||||||
|
// This will find any process with Parallels and Acrobat Reader in the name
|
||||||
|
cmd = `pkill -i -f '(Parallels).*(Acrobat Reader)'`;
|
||||||
|
|
||||||
|
child_process.exec(cmd, (err, stdout, stdin) => {
|
||||||
|
if (err) throw err;
|
||||||
|
console.log(stdout);
|
||||||
|
});
|
||||||
|
console.log('Killed Parallels Acrobat Reader process');
|
||||||
|
}
|
||||||
|
|
||||||
if (process_name == 'Parallels:PowerPoint') {
|
if (process_name == 'Parallels:PowerPoint') {
|
||||||
// Regular expression: (Parallels).*(PowerPoint)
|
// Regular expression: (Parallels).*(PowerPoint)
|
||||||
// This will find any process with Parallels and PowerPoint in the name
|
// This will find any process with Parallels and PowerPoint in the name
|
||||||
|
|||||||
Reference in New Issue
Block a user