steam-runtime-urlopen improvements
-
Move pv_boolean_environment into library code
We wrote this, so it's fine to relicense it more permissively, from LGPL to MIT.
-
urlopen: Comment why we always special-case steam: and steamlink: URLs
-
urlopen: Use a separate variable for the error from steam.pipe
-
urlopen: Move all error-handling to the end
In cases where we tried both steam.pipe and xdg-desktop-portal, this lets us show both their errors, instead of only the most recent.
-
urlopen: Allow steam.pipe to be tried either before or after x-d-p
In situations where Steam is providing the whole UI, such as Steam Deck and Big Picture mode, we might want to prioritize steam.pipe higher than x-d-p, so that Steam has the opportunity to choose what the UX will be (launching an external browser, vs. showing the web page in-process using CEF and steamwebhelper).