summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFarid Zakaria <farid.m.zakaria@gmail.com>2024-08-31 18:04:54 -0700
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2024-09-04 20:59:41 +0000
commit352867e2ed15f032da4d0ff8cc2dd59b0d14dae9 (patch)
treeb2f8c4e1ca408629f2e080c0987eed27e137b2cb
parent[Backport release-24.05] qrcp: 0.11.2 → 0.11.3 (#339562) (diff)
downloadnixpkgs-352867e2ed15f032da4d0ff8cc2dd59b0d14dae9.tar.gz
google-chrome: disable update notification
Add default commandLineArgs that disable update notification. We can't update through the update mechanism so just disable by default the notification. (cherry picked from commit 19bd18f2355421d688899633b2cd628fa3766f05)
-rw-r--r--pkgs/by-name/go/google-chrome/package.nix16
1 files changed, 14 insertions, 2 deletions
diff --git a/pkgs/by-name/go/google-chrome/package.nix b/pkgs/by-name/go/google-chrome/package.nix
index 259faa533701..5165345abb08 100644
--- a/pkgs/by-name/go/google-chrome/package.nix
+++ b/pkgs/by-name/go/google-chrome/package.nix
@@ -243,7 +243,13 @@ let
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH:${addOpenGLRunpath.driverLink}/share" \
--set CHROME_WRAPPER "google-chrome-$dist" \
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
- --add-flags ${lib.escapeShellArg commandLineArgs}
+ --add-flags ${
+ lib.concatStringsSep " " [
+ (lib.escapeShellArg commandLineArgs)
+ # Disables auto updates and browser outdated popup
+ "--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'"
+ ]
+ }
for elf in $out/share/google/$appname/{chrome,chrome-sandbox,chrome_crashpad_handler}; do
patchelf --set-rpath $rpath $elf
@@ -283,7 +289,13 @@ let
mkdir -p $out/bin
makeWrapper $out/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome $out/bin/google-chrome-stable \
- --add-flags ${lib.escapeShellArg commandLineArgs}
+ --add-flags ${
+ lib.concatStringsSep " " [
+ (lib.escapeShellArg commandLineArgs)
+ # Disables auto updates and browser outdated popup
+ "--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'"
+ ]
+ }
runHook postInstall
'';