Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is awesome!

I like the idea of combining this with pyScript to create portable “GUI” apps. Use this for a local server, open the users browser and point it at it. Websockets/pickle to bridge to a UI written in pyScript.

Does cosmopolitan have an API to open the users default browser? I know Python itself does…

https://pyscript.net/



Nice idea! IIRC redbean has the `LaunchBrowser` function (https://redbean.dev/2.0.html#LaunchBrowser) to open the user's default browser, and the `cosmo` module in Python is exactly for providing Cosmopolitan Libc goodies via a Python API. You can probably copy some of the LaunchBrowser code into `third_party/python/Python/cosmomodule.c` and implement the feature you're looking for. Submit a PR :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: