neutralinojs / neutralino.js

JavaScript API for Neutralinojs

Home Page:https://neutralino.js.org/docs/api/overview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

standard inpuy not sent in with background enabled on os.execCommand

embedvr opened this issue · comments

Hello!

I was just checking out Neutralino with my project I am working on and I need to send text to the standard input of another application. This works fine with background: false but if I enable background then my program doesnt recieve the standard input.

// works
await Neutralino.os.execCommand('./test', { background: false, stdIn: document.getElementById('code').value });
// does not work
await Neutralino.os.execCommand('./test', { background: true, stdIn: document.getElementById('code').value });

Hey.. Please use our new process spawn API. You can check more details from the documentation: https://neutralino.js.org/docs/api/os#osspawnprocesscommand

Thanks for reporting this issue 🎉