diff options
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/prefs_common.c | 4 | ||||
-rw-r--r-- | libsylph/utils.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libsylph/prefs_common.c b/libsylph/prefs_common.c index 9b8af6e8..aaf50707 100644 --- a/libsylph/prefs_common.c +++ b/libsylph/prefs_common.c @@ -302,8 +302,12 @@ static PrefParam param[] = { #endif /* Other */ +#ifdef G_OS_WIN32 + {"uri_open_command", NULL, &prefs_common.uri_cmd, +#else {"uri_open_command", DEFAULT_BROWSER_CMD, &prefs_common.uri_cmd, P_STRING}, +#endif {"print_command", "lpr %s", &prefs_common.print_cmd, P_STRING}, {"ext_editor_command", "gedit %s", &prefs_common.ext_editor_cmd, P_STRING}, 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, '%')) |