about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--modules/gnome.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/gnome.nix b/modules/gnome.nix
index 68d3a31..0c45130 100644
--- a/modules/gnome.nix
+++ b/modules/gnome.nix
@@ -117,9 +117,10 @@ in
 		gnomeExtensions.hibernate-status-button
 		#brave #specified in home.nix
             	(pkgs.brave.overrideAttrs (oldAttrs: {
-                  commandLineArgs = [
-                    "--profile-directory=$HOME/.config/BraveSoftware/Brave-Browser/Default"
-                  ];
+		  installPhase = oldAttrs.installPhase + ''
+		  	substituteInPlace $out/share/applications/brave-browser.desktop \
+			--replace %U "%U --profile-directory=$HOME/.config/BraveSoftware/Brave-Browser/Default"
+		  '';
                 }))
 
 		newsflash