Skip to content

Commit

Permalink
brave: fix config dir path (#2173)
Browse files Browse the repository at this point in the history
Changes install path for extensions from `~/.config/brave` to
`~/.config/BraveSoftware/Brave-Browser` on Linux.
  • Loading branch information
Colin Summers authored Jul 12, 2021
1 parent 4971b9c commit 9e3c402
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/programs/chromium.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9e3c402

Please sign in to comment.