Repository navigation
route from a single app to a particular chrome profile based on in-app variables #462
Replies: 2 comments
Finicky: Route links to specific Chrome profiles from Apple Mail & SlackShort answer:
Below are practical configs you can drop into Chrome profile notesFinicky can target Chrome profiles with: browser: {
name: "Google Chrome",
// Use the profile's directory: "Default", "Profile 1", "Profile 2", …
// or the visible profile name, depending on your setup.
profile: "Profile 1"
}
Case 2 (works well): Slack → Chrome profile per workspaceThis routes Slack workspace links to different Chrome profiles based on the workspace host: module.exports = {
defaultBrowser: {
name: "Google Chrome",
profile: "Default",
},
handlers: [
// Slack app (bundle ID varies by version)
{
match: ({ sourceBundleIdentifier }) =>
sourceBundleIdentifier === "com.tinyspeck.slackmacgap" ||
sourceBundleIdentifier === "com.slack.Slack",
// Then route by workspace host
url: [
// Workspace 1
{
host: /(^|\.)workspace1\.slack\.com$/i,
browser: { name: "Google Chrome", profile: "Profile 1" },
},
// Workspace 2
{
host: /(^|\.)workspace2\.slack\.com$/i,
browser: { name: "Google Chrome", profile: "Profile 2" },
},
// Workspace 3
{
host: /(^|\.)workspace3\.slack\.com$/i,
browser: { name: "Google Chrome", profile: "Profile 3" },
},
],
},
],
};
Case 1 (limitation): Apple Mail → Chrome profile per “To:” accountFinicky cannot read which Mail account the clicked link came from, so you can’t match on module.exports = {
defaultBrowser: { name: "Google Chrome", profile: "Default" },
handlers: [
// From Apple Mail only
{
match: ({ sourceBundleIdentifier }) =>
sourceBundleIdentifier === "com.apple.mail",
// Route by destination host patterns (proxy for the account)
url: [
// Links that should open with the Domain1 profile
{
host: /(^|\.)domain1\.com$/i,
browser: { name: "Google Chrome", profile: "Profile 1" },
},
// Domain2 → Profile 2
{
host: /(^|\.)domain2\.com$/i,
browser: { name: "Google Chrome", profile: "Profile 2" },
},
// Domain3 → Profile 3
{
host: /(^|\.)domain3\.com$/i,
browser: { name: "Google Chrome", profile: "Profile 3" },
},
],
},
],
};If you truly need per-Mail-account routing, consider one of these patterns:
Putting it togetherHere’s a single module.exports = {
defaultBrowser: { name: "Google Chrome", profile: "Default" },
handlers: [
// --- Slack → per workspace ---
{
match: ({ sourceBundleIdentifier }) =>
sourceBundleIdentifier === "com.tinyspeck.slackmacgap" ||
sourceBundleIdentifier === "com.slack.Slack",
url: [
{ host: /(^|\.)workspace1\.slack\.com$/i, browser: { name: "Google Chrome", profile: "Profile 1" } },
{ host: /(^|\.)workspace2\.slack\.com$/i, browser: { name: "Google Chrome", profile: "Profile 2" } },
{ host: /(^|\.)workspace3\.slack\.com$/i, browser: { name: "Google Chrome", profile: "Profile 3" } },
],
},
// --- Apple Mail → route by destination domain (proxy for account) ---
{
match: ({ sourceBundleIdentifier }) => sourceBundleIdentifier === "com.apple.mail",
url: [
{ host: /(^|\.)domain1\.com$/i, browser: { name: "Google Chrome", profile: "Profile 1" } },
{ host: /(^|\.)domain2\.com$/i, browser: { name: "Google Chrome", profile: "Profile 2" } },
{ host: /(^|\.)domain3\.com$/i, browser: { name: "Google Chrome", profile: "Profile 3" } },
],
},
],
};Debugging tips
Bottom line: Slack workspace routing works great with Finicky (match |
|
amazing. thank you so much! |
Uh oh!
There was an error while loading. Please reload this page.
Hi there!
Just installed Finicky for the first time. Scanned the config examples and couldn't find exactly what I was looking for, hopeful that this functionality exists and I just need a nudge to configure it correctly.
Case 1: From Apple Mail, route to a particular Chrome profile based on the to: email address
I manage 3 different email addresses in Mail and I have 3 chrome profiles that are basically 1:1 against those email addresses. I will always want links sent to @domain1.com to open in Chrome profile 1, @domain2.com to open in Chrome profile 2, etc.
Case 2: From the Slack app, route to a particular Chrome profile based on the Workspace
Very similarly, I belong to three different Slack workspaces that are 1:1 against those 3 chrome profiles. I will always want links from workspace1 to open in Chrome profile 1, workspace2 to open in Chrome profile 2, etc.
Is this possible?
All reactions