summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES5
-rw-r--r--browser.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 1a7038c..c73601a 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,10 @@
Release history for lariza
+next
+ [Fixed]
+ - Automatically adding the "file://" prefix didn't work (reliably) if
+ a message was sent to an already running instance.
+
v17.02 2017-02-16
[Fixed]
- As requested by WebKit's API documentation, we now wait for the
diff --git a/browser.c b/browser.c
index a4391dc..112c698 100644
--- a/browser.c
+++ b/browser.c
@@ -121,8 +121,10 @@ client_new(const gchar *uri, WebKitWebView *related_wv, gboolean show)
if (uri != NULL && cooperative_instances && !cooperative_alone)
{
- write(cooperative_pipe_fp, uri, strlen(uri));
+ f = ensure_uri_scheme(uri);
+ write(cooperative_pipe_fp, f, strlen(f));
write(cooperative_pipe_fp, "\n", 1);
+ g_free(f);
return NULL;
}