[Backport release-26.05] {tor,mullvad}-browser: remove unnecessary auto-update policies (#526706)

This commit is contained in:
Fernando Rodrigues 2026-06-01 11:49:47 +00:00 committed by GitHub
commit e57369b531
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 17 deletions

View file

@ -123,12 +123,6 @@ let
};
}
);
policiesJson = writeText "policies.json" (
builtins.toJSON {
policies.DisableAppUpdate = true;
}
);
in
stdenv.mkDerivation rec {
pname = "mullvad-browser";
@ -200,7 +194,7 @@ stdenv.mkDerivation rec {
mv mullvadbrowser.real mullvadbrowser
# store state at `~/.mullvad` instead of relative to executable
touch "$MB_IN_STORE/system-install"
touch "$MB_IN_STORE/is-packaged-app"
# Add bundled libraries to libPath.
libPath=${libPath}:$MB_IN_STORE
@ -282,7 +276,6 @@ stdenv.mkDerivation rec {
# Install distribution customizations
install -Dvm644 ${distributionIni} $out/share/mullvad-browser/distribution/distribution.ini
install -Dvm644 ${policiesJson} $out/share/mullvad-browser/distribution/policies.json
runHook postInstall
'';

View file

@ -136,12 +136,6 @@ let
};
}
);
policiesJson = writeText "policies.json" (
builtins.toJSON {
policies.DisableAppUpdate = true;
}
);
in
stdenv.mkDerivation rec {
pname = "tor-browser";
@ -213,8 +207,8 @@ stdenv.mkDerivation rec {
# firefox is a wrapper that checks for a more recent libstdc++ & appends it to the ld path
mv firefox.real firefox
# store state at `~/.tor browser` instead of relative to executable
touch "$TBB_IN_STORE/system-install"
# store state at `~/.tor project` instead of relative to executable
touch "$TBB_IN_STORE/is-packaged-app"
# The final libPath. Note, we could split this into firefoxLibPath
# and torLibPath for accuracy, but this is more convenient ...
@ -331,7 +325,6 @@ stdenv.mkDerivation rec {
# Install distribution customizations
install -Dvm644 ${distributionIni} $out/share/tor-browser/distribution/distribution.ini
install -Dvm644 ${policiesJson} $out/share/tor-browser/distribution/policies.json
runHook postInstall
'';