Igalia / webkit-container-sdk

The all-in-one SDK for WebKit GTK/WPE port development.
MIT License
8 stars 4 forks source link

Unable to open HTTP urls with xdg-open in the container #10

Open cadubentzen opened 3 months ago

cadubentzen commented 3 months ago

When using VSCode in the container and clicking to to sign in to GitHub, it tries to open a browser window with xdg-open, but it fails to do so.

Installing gvfs-backends fixes it. It increases the container size by 58.3 MB.

TingPing commented 3 months ago

I'm not sure what gvfs-backends would do.

One solution is having a browser inside of the container. Previously I tried using the portal to open URLs on the host, which works fine for http, but not for file. Maybe we should just have a script that splits their handling.

cadubentzen commented 3 months ago

There's epiphany installed in the container already, but VSCode is unable to launch it without gvfs-backends installed.

ptomato commented 3 months ago

FWIW, Toolbx is able to handle this by launching a Flatpak on the host system that handles the URL. This has mixed success. For example, it opens the URL with Chromium now that I have Chromium as a Flatpak. Before that, it opened the URL with GNOME Builder.

TingPing commented 3 months ago

This is the recent change btw https://github.com/Igalia/wkdev-sdk/commit/c6f192e080a1ebc7e890f4bae8c0c0278e84f95f, I just did it because I had to open a lot of file:// URIs. Returning it with that fixed shouldn't be much effort.