Skip to content

Conversation

@patroza
Copy link
Contributor

@patroza patroza commented Nov 13, 2025

before the change
omarchy-launch-or-focus-webapp "chrome-outlook.office.com__mail_inbox-Profile_2" "https://outlook.office.com/mail/inbox" "--profile-directory=Profile 2"
would still launch with the default profile,

with the change, it loads with the specified Profile 2.

@dhh
Copy link
Member

dhh commented Nov 17, 2025

How does adding these local assigns fix things?

@patroza
Copy link
Contributor Author

patroza commented Nov 17, 2025

How does adding these local assigns fix things?

i'll be honest; beats me, but with the change, the following works:
omarchy-launch-or-focus-webapp "chrome-outlook.office.com__mail_inbox-Profile_2" "https://outlook.office.com/mail/inbox" "--profile-directory=Profile 2"

without it, it doesn't.

for the record, the following works fine in both situations:
omarchy-launch-webapp "https://outlook.office.com/mail/inbox" "--profile-directory=Profile 2"

@dhh
Copy link
Member

dhh commented Nov 20, 2025

Hmm. I can't replicate the problem.

When I do:

omarchy-launch-or-focus-webapp HEY "https://app.hey.com" "--profile-directory=Profile 2"

And then run it again, it correctly focuses on the HEY app. Maybe you window pattern is too strict? Remember it's done with fuzzy search.

@patroza
Copy link
Contributor Author

patroza commented Nov 20, 2025

Hmm. I can't replicate the problem.

When I do:

omarchy-launch-or-focus-webapp HEY "https://app.hey.com" "--profile-directory=Profile 2"

And then run it again, it correctly focuses on the HEY app. Maybe you window pattern is too strict? Remember it's done with fuzzy search.

The problem is not the focusing, that works fine, but the passing of the profile directory when passed through the omarchy-launch-or-focus script; without the fix, it's not passing on that setting correctly.
So you have to test with Hey closed. I'm not sure if it remembers your last profile either so you may try some random profile directories, say Profile 10.

@dhh
Copy link
Member

dhh commented Nov 20, 2025

Looks like the problem is the space in the profile name for you. If you do: omarchy-launch-or-focus-webapp HEY https://app.hey.com --profile-directory=Profile2 it appears to be correct?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants