Merge branch 'valoq/zathura-master' into develop

This commit is contained in:
Sebastian Ramacher 2018-05-26 09:30:56 +02:00
commit 817a33b8fb

View file

@ -532,6 +532,11 @@ cmd_exec(girara_session_t* session, girara_list_t* argument_list)
g_return_val_if_fail(session->global.data != NULL, false);
zathura_t* zathura = session->global.data;
if (zathura->global.sandbox == ZATHURA_SANDBOX_STRICT) {
girara_notify(zathura->ui.session, GIRARA_ERROR, _("Exec is not permitted in strict sandbox mode"));
return false;
}
if (zathura->document != NULL) {
const char* path = zathura_document_get_path(zathura->document);