Difference between revisions of "Broadway Gtk3 backend"
(→MacOS) |
|||
| (8 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | 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 [https://developer.gnome.org/gtk3/stable/gtk-broadway.html Broadway backend] by setting <code>GDK_BACKEND=broadway</code>. Then you can make your application appear in a web browser by pointing it at <code>http://127.0.0.1:8080</code>. Note that you need to enable web sockets in your web browser. | + | {{man warn|GTK's X11 Backend Now( 1 February 2025) Deprecated, Planned For Removal In GTK 5|HTML5 Broadway backends. Broadway was a nifty back-end for outputting to modern HTML5 for GTK apps within web browsers but ultimately not much use[https://www.phoronix.com/news/GTK-X11-Now-Deprecated]}} |
| + | |||
| + | 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 [https://developer.gnome.org/gtk3/stable/gtk-broadway.html Broadway backend] by setting <code>GDK_BACKEND=broadway</code>. Then you can make your application appear in a web browser by pointing it at <code>http://127.0.0.1:8080</code>. Note that you need to enable web sockets in your web browser. | ||
Broadway GDK backend allows multiple GTK+ applications to display their windows in the same web browser, by connecting to a Broadway display server. | Broadway GDK backend allows multiple GTK+ applications to display their windows in the same web browser, by connecting to a Broadway display server. | ||
| − | =Ubuntu= | + | =Linux= |
| + | |||
| + | * [https://wiki.archlinux.org/index.php/GTK#Broadway_backend Broadway backend] - Arch Linux Wiki | ||
| + | ==Ubuntu== | ||
In a terminal, run: | In a terminal, run: | ||
| Line 15: | Line 22: | ||
http://localhost:8080/ | http://localhost:8080/ | ||
| − | The | + | The <code>UBUNTU_MENUPROXY= LIBOVERLAY_SCROLLBAR=0</code> is only useful if you use the global-menu and/or overlay-scrollbars. You have to disable them for Broadway, otherwise the program will segfault. |
Please see the "[https://developer.gnome.org/gtk3/stable/broadwayd.html broadwayd]" manpage for more information. | Please see the "[https://developer.gnome.org/gtk3/stable/broadwayd.html broadwayd]" manpage for more information. | ||
| Line 24: | Line 31: | ||
* [https://launchpad.net/~malizor/+archive/gtk-next-broadway Gtk 3.8] | * [https://launchpad.net/~malizor/+archive/gtk-next-broadway Gtk 3.8] | ||
| − | =Windows= | + | =Microsoft Windows= |
| − | |||
* [http://www.tarnyko.net/en/?q=node/7 GTK+3 "Broadway" for Windows - official release] and [http://www.tarnyko.net/en/?q=node/8 how to use it]. | * [http://www.tarnyko.net/en/?q=node/7 GTK+3 "Broadway" for Windows - official release] and [http://www.tarnyko.net/en/?q=node/8 how to use it]. | ||
| Line 31: | Line 37: | ||
=MacOS= | =MacOS= | ||
| + | |||
[[Category:Developers/General]] | [[Category:Developers/General]] | ||
[[Category:GEPS|B]] | [[Category:GEPS|B]] | ||
Latest revision as of 22:30, 25 August 2025
|
GTK's X11 Backend Now( 1 February 2025) Deprecated, Planned For Removal In GTK 5 HTML5 Broadway backends. Broadway was a nifty back-end for outputting to modern HTML5 for GTK apps within web browsers but ultimately not much use[1] |
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.
Broadway GDK backend allows multiple GTK+ applications to display their windows in the same web browser, by connecting to a Broadway display server.
Linux
- Broadway backend - Arch Linux Wiki
Ubuntu
In a terminal, run:
broadwayd
In another terminal, run:
GDK_BACKEND=broadway UBUNTU_MENUPROXY= LIBOVERLAY_SCROLLBAR=0 gramps
Finally, open you Web browser and go to:
http://localhost:8080/
The UBUNTU_MENUPROXY= LIBOVERLAY_SCROLLBAR=0 is only useful if you use the global-menu and/or overlay-scrollbars. You have to disable them for Broadway, otherwise the program will segfault.
Please see the "broadwayd" manpage for more information.
