Commit 193b825d authored by valoq's avatar valoq

check sandbox cleanup

parent 34653656
......@@ -532,14 +532,10 @@ 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;
char* sandbox = NULL;
girara_setting_get(zathura->ui.session, "sandbox", &sandbox);
if (g_strcmp0(sandbox, "strict") == 0) {
if (zathura->global.sandbox == ZATHURA_SANDBOX_STRICT) {
girara_notify(zathura->ui.session, GIRARA_ERROR, _("Exec is not permitted in strict sandbox mode"));
g_free(sandbox);
return false;
}
g_free(sandbox);
if (zathura->document != NULL) {
const char* path = zathura_document_get_path(zathura->document);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment