distrobox icon indicating copy to clipboard operation
distrobox copied to clipboard

[Suggestion] Detect Host System Default Browser to Open Links

Open robert2343 opened this issue 2 years ago • 3 comments

Not sure if this is the right place for this. If not, please let me know.

I would like to have a GUI app running in a distrobox container detect what the default browser of the host system is, so that when I click on a link from within the GUI app in distrobox, it opens the link in my default browser, which is installed on my host system.

If this is already possible, would someone be able to explain it or point me to the place in the docs where it describes how to do this?

Thanks!

robert2343 avatar Nov 12 '23 00:11 robert2343

You will need flatpak installed, and its service running on your host.

hustler-not-chatty avatar Dec 14 '23 14:12 hustler-not-chatty

Why would I need flatpak for this if the browser is not installed through flatpak?

robert2343 avatar Dec 14 '23 15:12 robert2343

In your container, xdg-open, the program responsible for firing up your default browser, depends on flatpak to function properly (At least in my experience it really does).

You can try it for yourself, and easily revert changes with your favorite package manager anyway.

hustler-not-chatty avatar Dec 14 '23 15:12 hustler-not-chatty

Now xdg-open is linked to the host one by default, so this won't be a problem anymore

89luca89 avatar Feb 21 '24 23:02 89luca89