@angristan let's rewrite Mastodon in GTK and make it a web app with Broadway https://developer.gnome.org/gtk3/stable/gtk-broadway.html
@espectalll How do I install Broadway?
@angristan you should already have it
@espectalll not on nixOS (and not on macOS either)
@espectalll I'll try in a VM
@espectalll it works so well!!! what the hell
@espectalll (broadwayd is present by default on Ubuntu, but why tho)
@angristan because GTK
don't question it
@espectalll is broadway actually used by GNOME? Or someone at all?
@angristan ...not as far as I know?
That's LibreOffice in your browser, via broadway. Not sure how actually useable it is, but it's essentially a free as in freedom Google Docs replacement.
here's Code::Blocks https://www.rollapp.com/launch/codeblocks?test-drive=1
...you see where this is going?
@amdg2 @espectalll @angristan btw, broadway is also getting way cooler (pun intended) with gtk4: https://blogs.gnome.org/alexl/2019/03/29/broadway-adventures-in-gtk4/
Instead of basically streaming <img>es it will now create real HTML <div>s & stuff and style them with CSS. This is just mind-blowing.
@bugaevc I see no error, 🙈
I see no window 🙈
@amdg2 well it works for me, so you must be doing something wrong
@bugaevc that's what I am doing. Maybe I have too old versions.
GTK+: 3.22.30 (hopefully the + is now gone)
@amdg2 I have GTK 3.24.8, but it shouldn't matter (especially if the demo works)
@bugaevc I have some updates pending in the VM. Let's see if it solves the issue. After, comes the question, where to report...
@bugaevc Ubuntu 18.04 is maybe the wrong part ?
Here is my procedure:
Open SSH session
$ broadwayd &
 + 21064 running broadwayd
Listening on /run/user/1000/broadway1.socket
Open the browser on my VM ip.
$ export GDK_DEBUG=all
$ export GDK_BACKEND=broadway
Gdk-Message: 12:45:57.916: Trying broadway backend
I have X forwarding still activated, maybe this is the issue.
@amdg2 on your VM IP on which TCP port? broadway listens on port 8080 by default (https://developer.gnome.org/gtk3/stable/gtk-broadway.html)
Does the browser actually open the broadway page (you should see the white background and the <title> should be "broadway 2.0")?
Does it work if you run the browser inside the VM? Does it work with other apps?
@bugaevc it works with other app, I can see gedit, nautilus, gtk demos.
Just tried with X11 forwarding disabled, doesn't change.
I will try from the VM.
@bugaevc I can confirm it doesn't work locally.
@amdg2 🤷 I see. Well, please @ me when you file the bug 😃
@bugaevc well last question, do you have any idea how I can get more logs ?
@amdg2 there's also GTK_DEBUG=all
Then they came up with running *that* as desktop apps, Electron style https://www.cappuccino.dev/blog/2010/05/nativehost-run-your-cappuccino-applications-on-the-desktop.html
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!