@@ -50,7 +50,7 @@ func HandleManualBrowserSelection() (string, error) {
5050 withStdio := survey .WithStdio (os .Stdin , os .Stderr , os .Stderr )
5151 in := survey.Select {
5252 Message : "Select one of the browsers from the list" ,
53- Options : []string {"Chrome" , "Brave" , "Edge" , "Vivaldi" , "Firefox" , "Waterfox" , "Chromium" , "Safari" , "Stdout" , "FirefoxStdout" , "Firefox Developer Edition" , "Firefox Nightly" , "Arc" , "Custom" },
53+ Options : []string {"Chrome" , "Brave" , "Edge" , "Vivaldi" , "Firefox" , "Waterfox" , "Chromium" , "Safari" , "Stdout" , "FirefoxStdout" , "Firefox Developer Edition" , "Firefox Nightly" , "Arc" , "Zen" , " Custom" },
5454 }
5555 var selection string
5656 clio .NewLine ()
@@ -139,6 +139,9 @@ func GetBrowserKey(b string) string {
139139 if strings .Contains (strings .ToLower (b ), "arc" ) {
140140 return ArcKey
141141 }
142+ if strings .Contains (strings .ToLower (b ), "zen" ) {
143+ return ZenKey
144+ }
142145 if strings .Contains (strings .ToLower (b ), "custom" ) {
143146 return CustomKey
144147 }
@@ -169,6 +172,8 @@ func DetectInstallation(browserKey string) (string, bool) {
169172 bPath , _ = SafariPathDefaults ()
170173 case ArcKey :
171174 bPath , _ = ArcPathDefaults ()
175+ case ZenKey :
176+ bPath , _ = ZenPathDefaults ()
172177 case FirefoxDevEditionKey :
173178 bPath , _ = FirefoxDevPathDefaults ()
174179 case FirefoxNightlyKey :
@@ -261,7 +266,7 @@ func ConfigureBrowserSelection(browserName string, path string) error {
261266 browserPath = customBrowserPath
262267 }
263268
264- if browserKey == FirefoxKey || browserKey == WaterfoxKey || browserKey == FirefoxDevEditionKey || browserKey == FirefoxNightlyKey {
269+ if browserKey == FirefoxKey || browserKey == WaterfoxKey || browserKey == FirefoxDevEditionKey || browserKey == FirefoxNightlyKey || browserKey == ZenKey {
265270 err := RunFirefoxExtensionPrompts (browserPath , browserName )
266271 if err != nil {
267272 return err
0 commit comments