summaryrefslogtreecommitdiff
path: root/docs/reference/gtk/broadwayd.xml
blob: 207b6c9f2f94d3f33d1edfebdfd7b153c17d779e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
]>
<refentry id="broadwayd">

<refentryinfo>
  <title>broadwayd</title>
  <productname>GTK+</productname>
  <authorgroup>
    <author>
      <contrib>Developer</contrib>
      <firstname>Alexander</firstname>
      <surname>Larsson</surname>
    </author>
  </authorgroup>
</refentryinfo>

<refmeta>
  <refentrytitle>broadwayd</refentrytitle>
  <manvolnum>1</manvolnum>
  <refmiscinfo class="manual">User Commands</refmiscinfo>
</refmeta>

<refnamediv>
  <refname>broadwayd</refname>
  <refpurpose>Broadway display server</refpurpose>
</refnamediv>

<refsynopsisdiv>
<cmdsynopsis>
<command>broadwayd</command>
<arg choice="opt">--port <replaceable>PORT</replaceable></arg>
<arg choice="opt">--address <replaceable>ADDRESS</replaceable></arg>
<arg choice="opt">--unixsocket <replaceable>ADDRESS</replaceable></arg>
<arg choice="opt"><replaceable>:DISPLAY</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>

<refsect1><title>Description</title>
<para>
<command>broadwayd</command> is a display server for the Broadway
GDK backend. It allows multiple GTK+ applications to display their
windows in the same web browser, by connecting to broadwayd.
</para>
<para>
When using broadwayd, specify the display number to use, prefixed
with a colon, similar to X. The default display number is 1.
<programlisting>
broadwayd :5
</programlisting>
Then point your web browser at <literal>http://127.0.0.1:8084</literal>.
Start your applications like this:
<programlisting>
BROADWAY_DISPLAY=:5 gtk3-demo
</programlisting>

You can add password protection for your session by creating a file in
<filename>$XDG_CONFIG_HOME/broadway.passwd</filename> or <filename>$HOME/.config/broadway.passwd</filename>
with a crypt(3) style password hash.

A simple way to generate it is with openssl:
<programlisting>
openssl passwd -1  > ~/.config/broadway.passwd
</programlisting>

</para>
</refsect1>

<refsect1><title>Options</title>
<variablelist>
  <varlistentry>
    <term>--port</term>
    <listitem><para>Use <replaceable>PORT</replaceable> as the HTTP
      port, instead of the default 8080 + (<replaceable>DISPLAY</replaceable> - 1).
      </para></listitem>
  </varlistentry>
  <varlistentry>
    <term>--address</term>
    <listitem><para>Use <replaceable>ADDRESS</replaceable> as the HTTP
      address, instead of the default <literal>http://127.0.0.1:<replaceable>PORT</replaceable></literal>.
      </para></listitem>
  </varlistentry>
  <varlistentry>
    <term>--unixsocket</term>
    <listitem><para>Use <replaceable>ADDRESS</replaceable> as the unix domain socket
      address. This option overrides <literal>--address</literal> and <literal>--port</literal>.
      It is available only on Unix-like systems.
      </para></listitem>
  </varlistentry>
</variablelist>
</refsect1>

</refentry>