johnste / finicky

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

Can't get finicky to do anything #310

Closed ToontjeM closed 8 months ago

ToontjeM commented 1 year ago

Installed Finicky from homebrew as well as from release download. Set default browser to Finicky Created very basic .finicky.js Syntaxt is ok because gets loaded incorrectty. No errors in the console. When i open a URL, it opens in the last active browser window. Nothing gets displayed in the Console.

Config:

module.exports = {
  defaultBrowser: "Brave Browser",
  handlers: [
    {
      match: "reddit.com/*",
      browser: () => {
        finicky.log("opening profile 1");
        return {
        name: "Brave Browser",
        profile: "Profile 1",
        }
      }
    },
    {
      match: "twitter.com/*",
      browser: () => {
        finicky.log("opening profile 2");
        return {
          name:"Brave Browser",
          profile: "Profile 2",
        }
      }
    }
  ]
}

My suspicion is that my URL request doesn't get passed to the default browser.

Ventura 13.4.1 (22F82) on MacBook Pro i9.

johnste commented 1 year ago

IIRC your matchers are not correctly and won't match the urls you expect it to.

Try something like match: /twitter\.com/ or match: finicky.matchHostnames("twitter.com") instead

ToontjeM commented 1 year ago

That did it! Thanks!!