programs/epiphany: fix so it launches again (had an overly restrictive bunpen sandbox, after i enabled webkit sandboxing)

This commit is contained in:
2025-03-25 15:25:16 +00:00
parent 662525d159
commit 7169193cc4

View File

@@ -14,17 +14,19 @@
sandbox.wrapperType = "inplace"; # /share/epiphany/default-bookmarks.rdf refers back to /share; dbus files to /libexec sandbox.wrapperType = "inplace"; # /share/epiphany/default-bookmarks.rdf refers back to /share; dbus files to /libexec
sandbox.net = "clearnet"; sandbox.net = "clearnet";
sandbox.whitelistAudio = true; sandbox.whitelistAudio = true;
sandbox.whitelistDbus.user.own = [ "org.gnome.Epiphany" ]; sandbox.whitelistDbus.user = true; #< TODO: reduce. requires to support nested dbus proxy though.
sandbox.whitelistPortal = [ # sandbox.whitelistDbus.user.own = [ "org.gnome.Epiphany" ];
# these are all speculative # sandbox.whitelistPortal = [
"Camera" # # these are all speculative
"FileChooser" # "Camera"
"Location" # "FileChooser"
"OpenURI" # "Location"
"Print" # "OpenURI"
"ProxyResolver" #< required else it doesn't load websites # "Print"
"ScreenCast" # "ProxyResolver" #< required else it doesn't load websites
]; # "ScreenCast"
# ];
# default sandboxing breaks rendering in weird ways. sites are super zoomed in / not scaled. # default sandboxing breaks rendering in weird ways. sites are super zoomed in / not scaled.
# enabling DRI/DRM (as below) seems to fix that. # enabling DRI/DRM (as below) seems to fix that.
sandbox.whitelistDri = true; sandbox.whitelistDri = true;
@@ -33,6 +35,13 @@
".config/epiphany" #< else it gets angry at launch ".config/epiphany" #< else it gets angry at launch
"tmp" "tmp"
]; ];
sandbox.extraPaths = [
# epiphany sandboxes *itself* with bwrap, and dbus-proxy which, confusingly, causes it to *require* these paths.
# TODO: these could maybe be mounted empty.
"/sys/block"
"/sys/bus"
"/sys/class"
];
buildCost = 2; buildCost = 2;