# epiphany web browser # - GTK4/webkitgtk # # usability notes: # - touch-based scroll works well (for moby) # - URL bar constantly resets cursor to the start of the line as i type # - maybe due to the URLbar suggestions getting in the way { pkgs, ... }: { sane.programs.epiphany = { # XXX(2023/07/08): running on moby without this hack fails, with: # - `bwrap: Can't make symlink at /var/run: File exists` # this could be due to: # - epiphany is somewhere following a symlink into /var/run instead of /run # - (nothing in `env` or in this repo touches /var/run) # - no xdg-desktop-portal is installed (unlikely) # # a few other users have hit this, in different contexts: # - # - # - package = pkgs.epiphany.overrideAttrs (upstream: { preFixup = '' gappsWrapperArgs+=( --set WEBKIT_DISABLE_SANDBOX_THIS_IS_DANGEROUS "1" ); '' + (upstream.preFixup or ""); }); persist.private = [ ".cache/epiphany" ".local/share/epiphany" # also .config/epiphany, but appears empty ]; mime.priority = 200; # default priority is 100: install epiphany only as a fallback mime.associations = let desktop = "org.gnome.Epiphany.desktop"; in { "text/html" = desktop; "x-scheme-handler/http" = desktop; "x-scheme-handler/https" = desktop; "x-scheme-handler/about" = desktop; "x-scheme-handler/unknown" = desktop; }; }; }