mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 08:45:59 +01:00
open URLs from dbus
This commit is contained in:
parent
73699b12ea
commit
859e0efa0f
1 changed files with 5 additions and 4 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue