2023-12-12 07:36:21 +00:00
|
|
|
{ pkgs, ... }:
|
|
|
|
{
|
|
|
|
sane.programs.loupe = {
|
2024-02-15 11:36:24 +00:00
|
|
|
# loupe is marked "dbus activatable", which does not seem to actually work (at least when launching from Firefox or Nautilus)
|
2024-02-21 16:56:56 +00:00
|
|
|
packageUnwrapped = pkgs.rmDbusServicesInPlace (pkgs.loupe.overrideAttrs (upstream: {
|
|
|
|
preFixup = (upstream.preFixup or "") + ''
|
|
|
|
# 2024/02/21: render bug which affects only moby:
|
|
|
|
# large images render blank in several gtk applications.
|
|
|
|
# may resolve itself as gtk or mesa are updated.
|
|
|
|
gappsWrapperArgs+=(--set GSK_RENDERER cairo)
|
|
|
|
'';
|
|
|
|
}));
|
2024-02-15 11:36:24 +00:00
|
|
|
|
2024-02-06 06:05:32 +00:00
|
|
|
sandbox.method = "bwrap";
|
|
|
|
sandbox.wrapperType = "wrappedDerivation";
|
2024-02-14 01:49:49 +00:00
|
|
|
sandbox.whitelistWayland = true;
|
2024-02-14 04:32:10 +00:00
|
|
|
sandbox.autodetectCliPaths = "parent";
|
2024-02-06 06:05:32 +00:00
|
|
|
sandbox.extraHomePaths = [
|
|
|
|
"Pictures"
|
2024-02-12 12:54:16 +00:00
|
|
|
"Pictures/servo-macros"
|
2024-02-06 06:05:32 +00:00
|
|
|
"Videos"
|
2024-02-12 12:54:16 +00:00
|
|
|
"Videos/servo"
|
2024-02-06 06:05:32 +00:00
|
|
|
"dev"
|
|
|
|
"records"
|
|
|
|
"ref"
|
|
|
|
"tmp"
|
|
|
|
];
|
2024-02-14 01:49:49 +00:00
|
|
|
|
2023-12-12 07:36:21 +00:00
|
|
|
mime.associations = {
|
|
|
|
"image/gif" = "org.gnome.Loupe.desktop";
|
|
|
|
"image/heif" = "org.gnome.Loupe.desktop"; # apple codec
|
|
|
|
"image/png" = "org.gnome.Loupe.desktop";
|
|
|
|
"image/jpeg" = "org.gnome.Loupe.desktop";
|
|
|
|
"image/svg+xml" = "org.gnome.Loupe.desktop";
|
|
|
|
"image/webp" = "org.gnome.Loupe.desktop";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|