webui-dev / webui

Use any web browser or WebView as GUI, with your preferred language in the backend and modern web technologies in the frontend, all in a lightweight portable library.
https://webui.me
MIT License
2.96k stars 172 forks source link

What are the processId methods used for #308

Closed Juff-Ma closed 8 months ago

Juff-Ma commented 8 months ago

Not a bug per se but what are the webui_get_parent_process_id and webui_get_child_process_id process id methods used for? I guess they return the process id of the Browser itself and it's last subprocess? But i can't really find any use in this personally, theres nothing in the documentation and i didn't get anything from staring at the source code.

AlbertShown commented 8 months ago

I see your point. But, not every API should be mandatory used. Some APIs exist just in case an app or a wrapper needs it. For example, someone (app/wrapper) wants to kill the process after exit. Another example is if someone wants to use OS's API to control the window, so process ID may needed.

Juff-Ma commented 8 months ago

That's all I wanted to know. I never thought about controlling it with OS Apis or force closing it. I just wanted to know what my options are and then consider if I need them.

AlbertShown commented 8 months ago

Fair enough, you are welcome if you have any more questions 👍