Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cadubentzen opened this issue Mar 12, 2024 · 5 comments
Open

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

cadubentzen opened this issue Mar 12, 2024 · 5 comments
Assignees

Comments

@cadubentzen
Copy link
Collaborator

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
Copy link
Member

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
Copy link
Collaborator Author

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

@ptomato
Copy link
Member

ptomato commented Mar 12, 2024

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
Copy link
Member

This is the recent change btw c6f192e, I just did it because I had to open a lot of file:// URIs. Returning it with that fixed shouldn't be much effort.

@TingPing TingPing self-assigned this Mar 12, 2024
@nikolaszimmermann
Copy link
Collaborator

@TingPing any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants