From dfd27e1bd38eaaa193f38cabc48bd7fda9bf2746 Mon Sep 17 00:00:00 2001 From: Dragon1573 <49941141+Dragon1573@users.noreply.github.com> Date: Wed, 20 Dec 2023 23:25:18 +0800 Subject: [PATCH] Fix (firefox_windows.go): Registry path For Mozilla Firefox Stable edition, it's incorrect in `getFirefoxPath` function. Signed-off-by: Dragon1573 <49941141+Dragon1573@users.noreply.github.com> --- interfacer/src/browsh/firefox_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfacer/src/browsh/firefox_windows.go b/interfacer/src/browsh/firefox_windows.go index d167bb4..e847f5c 100644 --- a/interfacer/src/browsh/firefox_windows.go +++ b/interfacer/src/browsh/firefox_windows.go @@ -17,7 +17,7 @@ func getFirefoxPath() string { k, err := registry.OpenKey( registry.LOCAL_MACHINE, - `Software\Mozilla\`+flavor+` `+versionString+`\bin`, + `Software\Mozilla\` + flavor + `\` + versionString + `\Main`, registry.QUERY_VALUE) if err != nil { Shutdown(fmt.Errorf("Error reading Windows registry: %w", err))