johnste / finicky

A macOS app for customizing which browser to start
MIT License
3.67k stars 136 forks source link

ms edge multiple profile #306

Closed mariomare22 closed 6 months ago

mariomare22 commented 1 year ago

Describe the bug I am trying to configure finicky to work with multiple profiles with ms Edge I checked and there are two profiles: Default and Profile 1.

Screenshot 2023-05-22 at 13 13 15
2023-05-22 13:07:28 - Configuration: Error: unknown key profile at module.exports.handlers[0].profile
unknown key profile at module.exports.handlers[1].profile
unknown key profile at module.exports.handlers[2].profile
unknown key profile at module.exports.handlers[3].profile
unknown key profile at module.exports.handlers[4].profile
unknown key profile at module.exports.handlers[5].profile

Your configuration Please add a link to or paste the relevant parts of your configuration here

module.exports = {
  defaultBrowser: "/Applications/Microsoft Edge.app",
  handlers: [
    {
      // Open any url including the string "workplace" in Edge
      match: /microsoft.com/,
      browser: "/Applications/Microsoft Edge.app",
      profile: "Default", 
    },
 .........

To Reproduce Steps to reproduce the behavior:

  1. Change config
  2. Reload
  3. See error
azhuchkov commented 10 months ago

It's a configuration problem. It should be written as:

browser: { 
    name: "Google Chrome",
    profile: "Default", 
}

I.e. profile must be added to the browser object, not as its sibling.

mariomare22 commented 6 months ago

Thanks that did the trick!