zoom: persist enough data that it stays logged in across exits (but not boots?)

This commit is contained in:
2025-06-17 21:41:56 +00:00
parent 09fd2426e3
commit fb5f15e757

View File

@@ -3,22 +3,30 @@
sane.programs.zoom-us = {
packageUnwrapped = pkgs.zoom-us.override {
xdgDesktopPortalSupport = true; #< what does this do? who knows!
# gnomeXdgDesktopPortalSupport = true;
# wlrXdgDesktopPortalSupport = true;
};
sandbox.net = "clearnet";
sandbox.whitelistAudio = true;
sandbox.whitelistAvDev = true; #< XXX(2025-05-29): it doesn't use pipewire for mic/video
sandbox.whitelistDri = true;
sandbox.whitelistPortal = [
"Camera" # not sure if used
"OpenURI"
"ScreenCast" # not sure if used
];
sandbox.whitelistWayland = true;
sandbox.whitelistX = true; # XXX(2025-05-29): required; TODO: try setting QP_... env vars to get native wayland?
sandbox.tmpDir = ".zoom"; #< tmpdir needs to be shared between instances, for the singleton socket to work (also, it needs to exist)
sandbox.tmpDir = ".cache/.zoom"; #< tmpdir needs to be shared between instances, for the singleton socket to work (also, it needs to exist)
mime.associations."x-scheme-handler/zoommtg" = "Zoom.desktop"; #< for when you click on a meeting link
# TODO: .config/{zoom,zoomus}.conf
# TODO: .config/Unknown Organization/zoom.conf
persist.byStore.ephemeral = [
".cache/zoom" # 8MB qmlcache
];
persist.byStore.private = [
".zoom" # 400MB of app-data (i.e. Zoom downloads its assets instead of shipping them in the package)
".cache/zoom" # 8MB qmlcache + 400MB app data (assets Zoom downloads at runtime instead of shipping the package) via the ~/.zoom -> .cache/zoom
".config/zoom"
];
# coerce Zoom into using XDG dirs:
fs.".zoom".symlink.target = ".cache/zoom";
fs.".config/zoom.conf".symlink.target = "zoom/zoom.conf";
fs.".config/zoomus.conf".symlink.target = "zoom/zoomus.conf";
};
}