johnste / finicky

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

Can't get Profiles working with Chromium 127 #335

Open sbkg0002 opened 2 months ago

sbkg0002 commented 2 months ago

Have you tried creating configuration for this application? Config:

// ~/.finicky.js

module.exports = {
  defaultBrowser: {
    name: "Chromium",
    profile: "Default",
  },
  rewrite: [
    {
      // Redirect all urls to use https
      match: ({ url }) => url.protocol === "http",
      url: {
        protocol: "https",
      },
    },
  ],
  handlers: [
    {
      match: ["google.com/*", "*.google.com/*"],
      browser: () => {
        finicky.log("opening Firefox");
        return {
          name: "Firefox",
        };
      },
    },
    {
      match: ["gitlab.com/*", "*.gitlab.com/*"],
      browser: () => {
        finicky.log("Opening Profile 1");
        return {
          name: "Chromium",
          profile: "Profile 1",
        };
      },
    },
    {
      match: ["github.com/*", "*.github.com/*"],
      browser: () => {
        finicky.log("Opening Default");
        return {
          name: "Chromium",
          profile: "Default",
        };
      },
    },
  ],
};

Opening chrome://version shows both Default and Profile 1 as profile folder names.

When I open either www.gitlab.com and www.github.com, the log shows the correct selector:

2024-08-23 08:12:33 - Opening Profile 1
2024-08-23 08:12:44 - Opening Default
2024-08-23 08:12:46 - Opening Profile 1

But they all open in the same profile (the one that was opened last).

What am I missing here?

Finicky version v3.4.0 (310)

PS: Thanks for the awesome app!