From 859e0efa0ff32b013e01b6a7cb0dff48fd987d8e Mon Sep 17 00:00:00 2001 From: Lukas K Date: Sun, 6 Dec 2015 21:27:18 +0100 Subject: [PATCH] open URLs from dbus --- zathura/dbus-interface.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/zathura/dbus-interface.c b/zathura/dbus-interface.c index 33e3b9c..e2560f6 100644 --- a/zathura/dbus-interface.c +++ b/zathura/dbus-interface.c @@ -213,13 +213,14 @@ handle_method_call(GDBusConnection* UNUSED(connection), g_variant_get(parameters, "(ssi)", &filename, &password, &page); document_close(priv->zathura, false); - const bool ret = document_open(priv->zathura, filename, - strlen(password) > 0 ? password : NULL, - page); + document_open_idle(priv->zathura, filename, + strlen(password) > 0 ? password : NULL, + page, + NULL, NULL); g_free(filename); g_free(password); - GVariant* result = g_variant_new("(b)", ret); + GVariant* result = g_variant_new("(b)", true); g_dbus_method_invocation_return_value(invocation, result); return; } else if (g_strcmp0(method_name, "CloseDocument") == 0) {