[Suggestion] Detect Host System Default Browser to Open Links
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!
You will need flatpak installed, and its service running on your host.
Why would I need flatpak for this if the browser is not installed through flatpak?
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.
Now xdg-open is linked to the host one by default, so this won't be a problem anymore