aboutsummaryrefslogtreecommitdiff
path: root/libsylph/utils.c
diff options
context:
space:
mode:
authorHiro <Hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-16 14:06:29 +0000
committerHiro <Hiro@ee746299-78ed-0310-b773-934348b2243d>2005-10-16 14:06:29 +0000
commit5c0a3497e9d19f1fc1b26c1ec335d82b1f3ac2f1 (patch)
treec790650b9765ef8b120e83246a03f8e237a30d1c /libsylph/utils.c
parentd45214240a9d326147576f03171d2a84cb9e624f (diff)
win32: use ShellExecute() to open URI.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@652 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph/utils.c')
-rw-r--r--libsylph/utils.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libsylph/utils.c b/libsylph/utils.c
index b06cae6e..95e1e7c0 100644
--- a/libsylph/utils.c
+++ b/libsylph/utils.c
@@ -3142,6 +3142,11 @@ gint open_uri(const gchar *uri, const gchar *cmdline)
g_return_val_if_fail(uri != NULL, -1);
+#ifdef G_OS_WIN32
+ if (!cmdline || cmdline[0] == '\0')
+ return execute_open_file(uri, NULL);
+#endif
+
if (cmdline &&
(p = strchr(cmdline, '%')) && *(p + 1) == 's' &&
!strchr(p + 2, '%'))