summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2023-03-17 08:56:23 -0400
committerMatthias Clasen <mclasen@redhat.com>2023-03-17 09:00:10 -0400
commit31ec095ec73c7aeca744b7870076cc4069552b60 (patch)
tree32b9e437c93c7b56384efeea50be1ab686b8195f /docs
parentfe2b6dd246e4a07a0b3175781c5eeea9dd06e0aa (diff)
downloadgtk+-31ec095ec73c7aeca744b7870076cc4069552b60.tar.gz
docs: Update broadway docs
Using Broadway without broadwayd hasn't worked since 2013... Fixes: #5662
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gtk/broadway.md17
1 files changed, 6 insertions, 11 deletions
diff --git a/docs/reference/gtk/broadway.md b/docs/reference/gtk/broadway.md
index 99987845cf..6877dd0c02 100644
--- a/docs/reference/gtk/broadway.md
+++ b/docs/reference/gtk/broadway.md
@@ -6,22 +6,15 @@ Slug: broadway
The GDK Broadway backend provides support for displaying GTK applications in
a web browser, using HTML5 and web sockets.
-To run your application in this way, select the Broadway backend by setting
-`GDK_BACKEND=broadway`. Then you can make your application appear in a web
-browser by pointing it at `http://127.0.0.1:8080`. Note that you need to
-enable web sockets in your web browser.
-
-You can choose a different port from the default 8080 by setting the
-`BROADWAY_DISPLAY` environment variable to the port that you want to use.
-
-It is also possible to use multiple GTK applications in the same web browser
-window, by using the Broadway server, `gtk4-broadwayd`, that ships with GTK.
-To start the Broadway server use:
+To run your application in this way, first run the broadway server,
+`gtk-broadwayd`, that ships with GTK:
```
gtk4-broadwayd :5
```
+The server expects the colon-prefixed display number as a commandline argument.
+
Then point your web browser at `http://127.0.0.1:8085`.
Once the Broadway server is running, you can start your applications like
@@ -31,6 +24,8 @@ this:
GDK_BACKEND=broadway BROADWAY_DISPLAY=:5 gtk4-demo
```
+Multiple applications can be presented in the same web browser window.
+
## Broadway-specific environment variables
### `BROADWAY_DISPLAY`