Lagrange [work/v1.7]

App: Attempt to open URLs using SDL first

=> 586a81c7d6e02ceb5cab10e5356a8a1ff3253eda

diff --git a/src/app.c b/src/app.c
index 4ea37cd4..e1b981d8 100644
--- a/src/app.c
+++ b/src/app.c
@@ -54,6 +54,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
 #include 
 #include 
 #include 
+#include 
+#include 
 
 #include 
 #include 
@@ -1437,6 +1439,11 @@ iBool handleCommand_App(const char *cmd) {
 }
 
 void openInDefaultBrowser_App(const iString *url) {
+#if SDL_VERSION_ATLEAST(2, 0, 14)
+    if (SDL_OpenURL(cstr_String(url)) == 0) {
+        return;
+    }
+#endif
     iProcess *proc = new_Process();
     setArguments_Process(proc,
 #if defined (iPlatformApple)
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.7/cdiff/586a81c7d6e02ceb5cab10e5356a8a1ff3253eda
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
376.916326 milliseconds
Gemini-to-HTML Time
0.335374 milliseconds

This content has been proxied by September (ba2dc).