tekartik / process_run.dart

Process run helper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any possible way for Web support?

EricPHassey opened this issue · comments

Looking for a way to run a bash script using the web. I understand security reasons etc typically block that (for obvious reasons), but others have said there is a way via html/javascript. Looking to just run a script that's already locally downloaded/installed.

but others have said there is a way via html/javascript

I would be to see where you get such info. A browser is a sandbox with no access to native process. Electron/node could be a solution though.

Anyway dart:io (that process_run uses) does not run on the web. The only solution (that I personnally use but sorry not public yet) is having a local server (websocket) running in a terminal or in a flutter application that a web page talks to.