Package: tootle / 0.2.0-2

002-browser-not-found-fallback.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/src/Desktop.vala
+++ b/src/Desktop.vala
@@ -7,7 +7,11 @@
         }
         catch (GLib.Error e){
             warning ("Can't open %s: %s", uri, e.message);
-            app.error (_("Error"), e.message);
+            if (e.message == "Operation not supported") {
+                app.error (_("Open this in a web browser:\n\n"+uri),"");
+            } else {
+                app.error (_("Error"), e.message);
+            }
         }
     }