mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 13:16:00 +01:00
check sandbox cleanup
This commit is contained in:
parent
346536564b
commit
193b825ddd
1 changed files with 1 additions and 5 deletions
|
@ -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);
|
g_return_val_if_fail(session->global.data != NULL, false);
|
||||||
zathura_t* zathura = session->global.data;
|
zathura_t* zathura = session->global.data;
|
||||||
|
|
||||||
char* sandbox = NULL;
|
if (zathura->global.sandbox == ZATHURA_SANDBOX_STRICT) {
|
||||||
girara_setting_get(zathura->ui.session, "sandbox", &sandbox);
|
|
||||||
if (g_strcmp0(sandbox, "strict") == 0) {
|
|
||||||
girara_notify(zathura->ui.session, GIRARA_ERROR, _("Exec is not permitted in strict sandbox mode"));
|
girara_notify(zathura->ui.session, GIRARA_ERROR, _("Exec is not permitted in strict sandbox mode"));
|
||||||
g_free(sandbox);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
g_free(sandbox);
|
|
||||||
|
|
||||||
if (zathura->document != NULL) {
|
if (zathura->document != NULL) {
|
||||||
const char* path = zathura_document_get_path(zathura->document);
|
const char* path = zathura_document_get_path(zathura->document);
|
||||||
|
|
Loading…
Reference in a new issue