mortenn / BrowserPicker

Smart browser selector for Windows
MIT License
244 stars 17 forks source link

Add Browser - Chrome Profiles not working for second profile only #66

Closed KyleShurtleff closed 2 years ago

KyleShurtleff commented 2 years ago

Following the directions to set up a custom browser specifically for different chrome profiles seems to not be working for an unknown reason.

Here is the setup config: image

And here is my profile number I'm trying to use (from chrome://version) image

Saving this new browser is added to the list of browsers as expected. Clicking a link will pop BrowserPicker, but selecting the new browser ('Work' in this case) does not result in anything happening: Browser Picker window closes, but no chrome tab appears. The Profile has an active window.

Note going thru this with my other profile (--profile-directory=Default) did not have any problems and is working as expected.

I've re-created the profile 3 times now with no improvement. Is there anything else I can try? I'm happy to jump on a zoom call if that would help test/debug.

mortenn commented 2 years ago

Which version are you using?

KyleShurtleff commented 2 years ago

Which version are you using?

1.8.4

Edit: I'm on Win 11 and just realized only Win 10 was mentioned in the release. Everything else seems to be working fine, at least?

mortenn commented 2 years ago

I wouldn't expect any difference in functionality between windows 10 and 11. This issue sounds a bit strange, so I will need to test it out in debug and see if I can reproduce it.

mortenn commented 2 years ago

I have done som testing, and fortunately, this does not appear to be a bug with BrowserPicker. You need to put "" around the profile folder name if it has a space, ie. --profile-directory="Profile 2" This is a limitation of how command line arguments work in general. Hope that answer is satisfactory!

KyleShurtleff commented 2 years ago

Thanks for the follow up!

Would you mind updating your documentation, specifically this part?

Tip for Chrome Users: If you are using multiple Chrome profiles, by default if you choose Chrome it will launch in the last profile you launched Chrome with. To make it possibe for browser picker to select a profile you can create a new browser for each profile, set the program to the chrome executable, and add a command line argument to specify which profile to launch: --profile-directory=Default for the first profile, --profile-directory=Profile 1 for the second profile, and so on.

mortenn commented 2 years ago

Sure thing!

If you feel anything else in the document may be improved, I am happy to take pull requests as well :)