summaryrefslogtreecommitdiffstats
path: root/windows.c
diff options
context:
space:
mode:
Diffstat (limited to 'windows.c')
-rw-r--r--windows.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/windows.c b/windows.c
index f9b04ce03..2730d4819 100644
--- a/windows.c
+++ b/windows.c
@@ -298,6 +298,14 @@ void subsurface_command_line_exit(gint *argc, gchar ***argv)
g_free(*argv);
}
+gboolean subsurface_launch_for_uri(const char* uri)
+{
+ if ((INT_PTR)ShellExecute(NULL, "open", uri, NULL, NULL, SW_SHOWNORMAL) > 32)
+ return TRUE;
+ g_message("ShellExecute failed for: %s", uri);
+ return FALSE;
+}
+
/* check if we are running a newer OS version */
gboolean subsurface_os_feature_available(os_feature_t f)
{