diff --git a/app/js/aether_native_app_v3.js b/app/js/aether_native_app_v3.js index 5df575a..44837f2 100644 --- a/app/js/aether_native_app_v3.js +++ b/app/js/aether_native_app_v3.js @@ -482,8 +482,19 @@ exports.kill_processes = async function ({process_name = null}) { }); console.log(`Killed processes matching ${process_name}`); - 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') { // Regular expression: (Parallels).*(PowerPoint) // This will find any process with Parallels and PowerPoint in the name