better firefox patching
still ui glitches
This commit is contained in:
		
							parent
							
								
									9dd48cf55c
								
							
						
					
					
						commit
						38dbe47139
					
				@ -7,12 +7,20 @@
 | 
			
		||||
    firefox-unwrapped = stdenv.mkDerivation {
 | 
			
		||||
      inherit (firefox-unwrapped) name version;
 | 
			
		||||
 | 
			
		||||
      nativeBuildInputs = [ fastjar ];
 | 
			
		||||
 | 
			
		||||
      buildCommand = ''
 | 
			
		||||
        mkdir -p $out
 | 
			
		||||
        cp -ra ${firefox-unwrapped}/. $out/.
 | 
			
		||||
        chmod +w -R $out
 | 
			
		||||
        sed -i "s|${firefox-unwrapped}|$out|g" $out/bin/firefox
 | 
			
		||||
        sed -i 's/reserved="true"/               /g' $out/lib/firefox/browser/omni.ja
 | 
			
		||||
 | 
			
		||||
        j=$out/lib/firefox/browser/omni.ja
 | 
			
		||||
        # f=chrome/browser/content/browser/browser.xhtml
 | 
			
		||||
        f=localization/en-US/browser/browserSets.ftl
 | 
			
		||||
        fastjar xf $j $f
 | 
			
		||||
        patch $f <${./fix-firefox.patch}
 | 
			
		||||
        fastjar uf $j $f
 | 
			
		||||
      '';
 | 
			
		||||
 | 
			
		||||
      inherit (firefox-unwrapped) meta;
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										20
									
								
								fix-firefox.patch
									
									
									
									
									
										Normal file
									
								
							
							
								
								
								
								
								
									
									
								
							
						
						
									
										20
									
								
								fix-firefox.patch
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,20 @@
 | 
			
		||||
--- localization/en-US/browser/browserSets.ftl~	2020-08-31 11:28:51.148881026 +0200
 | 
			
		||||
+++ localization/en-US/browser/browserSets.ftl	2020-08-31 11:35:37.659977936 +0200
 | 
			
		||||
@@ -9,7 +9,7 @@
 | 
			
		||||
     .label = Zoom
 | 
			
		||||
 
 | 
			
		||||
 window-new-shortcut =
 | 
			
		||||
-    .key = N
 | 
			
		||||
+    .keycode = VK_F19
 | 
			
		||||
 
 | 
			
		||||
 window-minimize-shortcut =
 | 
			
		||||
     .key = M
 | 
			
		||||
@@ -185,7 +185,7 @@
 | 
			
		||||
 ## global menu.
 | 
			
		||||
 
 | 
			
		||||
 quit-app-shortcut =
 | 
			
		||||
-    .key = Q
 | 
			
		||||
+    .keycode = VK_F20
 | 
			
		||||
 
 | 
			
		||||
 help-shortcut =
 | 
			
		||||
     .key = ?
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user