summaryrefslogtreecommitdiffstats
path: root/macos.c
diff options
context:
space:
mode:
Diffstat (limited to 'macos.c')
-rw-r--r--macos.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/macos.c b/macos.c
index b8451cfd0..b67c9d6ea 100644
--- a/macos.c
+++ b/macos.c
@@ -220,3 +220,15 @@ gboolean subsurface_os_feature_available(os_feature_t f)
{
return TRUE;
}
+
+gboolean subsurface_launch_for_uri(const char* uri)
+{
+ GError *err = NULL;
+ gtk_show_uri(NULL, uri, gtk_get_current_event_time(), &err);
+ if (err) {
+ g_message("%s: %s", err->message, uri);
+ g_error_free(err);
+ return FALSE;
+ }
+ return TRUE;
+}