Probally I will try when in next version of Lazarus. But you can try if you have a linux desktop with any gtk app.
## Using GTK with the Broadway backend
Starting with GTK 3, GTK introduced a new backend called **Broadway**. With Broadway, GTK 3/4 applications can be displayed in a web browser within seconds, without recompiling the application.
See the official documentation:
https://docs.gtk.org/gtk4/broadway.html### Using GTK with Broadway
The GTK Broadway backend allows GTK applications to be displayed in a web browser using **HTML5 and WebSockets**.
To run an application this way, you first need to start the Broadway server, `gtk-broadwayd`, which is included with GTK:
```bash
gtk4-broadwayd :5
```
Be careful with the display number. The default display is `:0`, which corresponds to port **8080**. Therefore:
* `:0` → port `8080`
* `:1` → port `8081`
* `:2` → port `8082`
* `:3` → port `8083`
* `:4` → port `8084`
* `:5` → port `8085`
* and so on.
In the example above, anything running on display `:5` will be available through port `8085`.
Open the following URL in your browser:
http://127.0.0.1:8085The page will initially be empty because there is probably nothing running on display `:5`.
You can then start a GTK application on that display, for example:
```bash
GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 nautilus
```
The application should now appear in the browser.
This is particularly interesting for testing GTK applications remotely or accessing GTK applications through a web browser without having to port or rewrite the application as a web application.
https://docs.gtk.org/gtk3/broadway.html is link for gtk3. I'm not so interested in broadway atm, so did not test it, but you can do that in a few minutes and write your experiment result here 