This commit is contained in:
blob42 2023-09-19 21:09:40 +02:00
parent 552bc98551
commit 8a233ca9a6
2 changed files with 3 additions and 22 deletions

View File

@ -85,25 +85,6 @@ type FirefoxConfig struct {
func setBookmarkDir(fc *FirefoxConfig) {
var err error
// pm := FirefoxProfileManager
// expand environment variables in path
// pm.ConfigDir = filepath.Join(os.ExpandEnv(FirefoxBaseDir))
// Check if base folder exists
// handled by profiles.Detect()
// exists, err := utils.CheckDirExists(pm.ConfigDir)
// if !exists {
// log.Criticalf("the base firefox folder <%s> does not exist", pm.ConfigDir)
// }
// if err != nil {
// log.Fatal(err)
// return
// }
// Set in NewMozProfileManager
// ffProfileLoader.BasePath = pm.ConfigDir
// load the default profile from the one defined in the config
var profile *profiles.Profile

View File

@ -22,7 +22,6 @@
package cmd
import (
"errors"
"fmt"
"github.com/urfave/cli/v2"
@ -57,12 +56,13 @@ var listProfilesCmd = &cli.Command{
//Create a browser instance
brmod, ok := br.ModInfo().New().(modules.BrowserModule)
if !ok {
log.Criticalf("module <%s> is not a BrowserModule", br.ModInfo().ID)
log.Criticalf("<%s> is not a BrowserModule", br.ModInfo().ID)
}
pm, isProfileManager := brmod.(profiles.ProfileManager)
if !isProfileManager{
return errors.New("not profile manager")
log.Warningf("<%s> is not a profile manager", br.ModInfo().ID)
continue
}
flavours := pm.ListFlavours()