You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Multi-profile Chrome across macOS Spaces: URL opens in the correct profile, but focus goes to the wrong window #550
Finicky 4.4.0-alpha, macOS 15 (Darwin 24.6), Google Chrome with two profiles
Each profile has its window on its own macOS Space (personal on desktop 2, work on desktop 4); links are usually clicked from a third app on yet another Space (desktop 3)
The URL always opens as a tab in the correct profile's window — routing works great. But focus doesn't follow the tab. Finicky launches via open -a "Google Chrome" …, which activates Chrome at the app level; macOS then fronts whichever Chrome window lives on the current Space (or the last-used one) — usually the other profile. The user has to hunt across Spaces for the tab that just opened.
Workaround that works (and what it taught us)
I replaced Chrome in the handler with a small AppleScript applet that:
snapshots id of active tab of every window in Chrome,
runs open -na "Google Chrome" --args --profile-directory=… <url>,
polls until one window's active tab id changes (or a new window appears) — that's the window that received the tab,
set index of theWin to 1, then via System Events: perform action "AXRaise" of window 1 + set frontmost to true.
This reliably pulls focus across Spaces to the right window. Two pitfalls that cost me iterations, in case they help an implementation:
Matching the target window by title fails — the new tab often still reports "Untitled" while loading.
Detecting the change by active-tab URL fails when the same URL is opened twice; tab ids are the reliable signal.
Residual cosmetic quirk of the workaround: the app-level activation still flashes the wrong window for ~a second before AXRaise lands. A native implementation could likely avoid that by raising before/while activating.
Suggestion
An opt-in per-handler flag, e.g. focusWindow: true, that makes the launcher raise the specific window that received the tab when a profile is set. Happy to test a build — and thanks for Finicky, it removed real daily friction for me.
For me on macOS 27, open requires -n when using --profile-directory to do anything at all. Chrome receives focus in the last focused window, but does not open a new tab or the specified URL in the last focused window, or any window at all. I had to write a wrapper script that calls open -na ..Chrome... $1 because I couldn't figure out how to get Finicky to launch in this mode.
For me, it would help to add options to pass to open on macOS.
Opened #562 with an opt-in focusWindow: true option to focus the correct Chrome profile window across Spaces, including fullscreen. Tested on macOS with two Chrome profiles.
Activity
chowyuncat commentedon Sep 24, 2026
For me on macOS 27,
openrequires-nwhen using--profile-directoryto do anything at all. Chrome receives focus in the last focused window, but does not open a new tab or the specified URL in the last focused window, or any window at all. I had to write a wrapper script that callsopen -na ..Chrome... $1because I couldn't figure out how to get Finicky to launch in this mode.For me, it would help to add options to pass to
openon macOS.OlegBezr commentedon Oct 23, 2026
Opened #562 with an opt-in
focusWindow: trueoption to focus the correct Chrome profile window across Spaces, including fullscreen. Tested on macOS with two Chrome profiles.