mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-13 16:31:41 +08:00
Add support for Firefox in a Snap for Ubuntu 22.04
Closes #327 Fixes #325
This commit is contained in:
@@ -27,6 +27,7 @@ var (
|
||||
"/usr/bin/firefox",
|
||||
"/usr/bin/firefox-nightly",
|
||||
"/usr/bin/firefox-developer-edition",
|
||||
"/snap/firefox",
|
||||
"/Applications/Firefox.app",
|
||||
"/Applications/FirefoxDeveloperEdition.app",
|
||||
"/Applications/Firefox Developer Edition.app",
|
||||
@@ -128,8 +129,12 @@ func execCertutil(cmd *exec.Cmd) ([]byte, error) {
|
||||
}
|
||||
|
||||
func (m *mkcert) forEachNSSProfile(f func(profile string)) (found int) {
|
||||
profiles, _ := filepath.Glob(FirefoxProfile)
|
||||
var profiles []string
|
||||
profiles = append(profiles, nssDBs...)
|
||||
for _, ff := range FirefoxProfiles {
|
||||
pp, _ := filepath.Glob(ff)
|
||||
profiles = append(profiles, pp...)
|
||||
}
|
||||
for _, profile := range profiles {
|
||||
if stat, err := os.Stat(profile); err != nil || !stat.IsDir() {
|
||||
continue
|
||||
|
Reference in New Issue
Block a user