From 9e3c4029720504d93db1ad3b1fabebfeb95ae82f Mon Sep 17 00:00:00 2001 From: Colin Summers Date: Sun, 11 Jul 2021 19:19:10 -0600 Subject: [PATCH] brave: fix config dir path (#2173) Changes install path for extensions from `~/.config/brave` to `~/.config/BraveSoftware/Brave-Browser` on Linux. --- modules/programs/chromium.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/programs/chromium.nix b/modules/programs/chromium.nix index c866c0999..f3291d760 100644 --- a/modules/programs/chromium.nix +++ b/modules/programs/chromium.nix @@ -114,10 +114,12 @@ let brave = "BraveSoftware/Brave-Browser"; }; + linuxDirs = { brave = "BraveSoftware/Brave-Browser"; }; + configDir = if pkgs.stdenv.isDarwin then - "Library/Application Support/${getAttr browser darwinDirs}" + "Library/Application Support/" + (darwinDirs."${browser}" or browser) else - "${config.xdg.configHome}/${browser}"; + "${config.xdg.configHome}/" + (linuxDirs."${browser}" or browser); extensionJson = ext: assert ext.crxPath != null -> ext.version != null;