Default sandbox to none

This commit is contained in:
Sebastian Ramacher 2024-03-03 17:53:03 +01:00
parent 1e69a18129
commit 1065fc2846
2 changed files with 3 additions and 3 deletions

View File

@ -825,7 +825,7 @@ zathura
is a read only sandbox that is intended for viewing documents only.
* Value type: String
* Default value: normal
* Default value: none
Some features are disabled when using strict sandbox mode:

View File

@ -363,8 +363,8 @@ void config_load_default(zathura_t* zathura) {
girara_setting_add(gsession, "selection-clipboard", "primary", STRING, false, _("The clipboard into which mouse-selected data will be written"), NULL, NULL);
bool_value = true;
girara_setting_add(gsession, "selection-notification", &bool_value, BOOLEAN, false, _("Enable notification after selecting text"), NULL, NULL);
/* default to no sandbox when running in WSL */
const char* string_value = running_under_wsl() ? "none" : "normal";
/* default to no sandbox */
const char* string_value = "none";
girara_setting_add(gsession, "sandbox", string_value, STRING, true, _("Sandbox level"), cb_sandbox_changed, NULL);
bool_value = false;
girara_setting_add(gsession, "show-signature-information", &bool_value, BOOLEAN, false,