-
-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#40 : Support for Google Chrome Profile #95
Conversation
Thank you! When I previously tried adding this feature I ran into a limitation in the Chrome browser where it would only open the supplied profile if Chrome wasn't already running. That is, if you had it running with Profile 1, triggering a rule that would open it in Profile 2 would instead open it in the existing Profile 1 issue. I haven't tried your approach yeah so I'm interested to hear if it has the same issue. |
I just tried some cases.
I'll try to find a solution this weekend. |
I found an open source project it work properly. https://github.com/ShogunPanda/alfred-chrome/blob/master/alfred-chrome.go |
From what I can gather from that Go project, your changes to the same thing (https://github.com/ShogunPanda/alfred-chrome/blob/e472fc66a7c2cffda85d452ccca289d2dfd762b3/alfred-chrome.go#L127) With 2 exceptions: they quote the profile name and put the URL as the first argument instead of the --profile-directory |
I just found a solution. If I remove @johnste , Is there any reason to use |
If there was a reason I don't remember it. If it solves the problem it's definitely an option to remove it. It'll take me a few days/a week or so to be able to test this and review it, |
Seems like it's working! That's awesome! It would be great to refer to the profile by the profile name instead of folder name. Seems like the profile name is stored in a json file called |
Thank for letting me know about I'll check this function first : |
This is good, thanks! What do you think about using a separate key in the config file to pass the option down to the
Or even something else entirely:
The former is self explanatory and it would make everything explicit, with the advantage that we could easily bring that to other browsers that support profiles. And as you suggest, we can easily validate it. The latter opens up a world for advanced users that might want to pass some other configuration that we can't think of at this time. For this specific scenario though, makes things hard to discover and validate. (I prefer the first myself) |
@vendruscolo I like the idea of using a separate property for the profile name, the first option. There are request to be able to run a script instead of starting an application #89 which fits pretty well with the second option. I'm not against bringing in custom arguments or arbitrary scripts, but as you mention they can't be validated and have to be an obvious "power feature" that can be scary. |
Awesome. Let me know if I can help in any way :) |
In discussion PR johnste#95, we introduce new config paramater to select profile of browsers. johnste#95 (comment) Co-authored-by: vendruscolo <[email protected]>
In discussion PR johnste#95, we introduce new config paramater to select profile of browsers. johnste#95 (comment) Co-authored-by: vendruscolo <[email protected]> Co-authored-by: Jong Eun Lee <[email protected]>
Closing this in favor of this pull request |
Oh great! Thank you.
|
This PR fixs #40.
Now you can add your
profile
of Google Chrome ProfileJust add you Chrome profile directory name like this:
#
is separator.It uses
--profile-directory
option.I just want to share something about this issue.
With the
--profile-directory
optionopen
command with bundle id doesn't open that profile/Applications/Google Chrome.app/Contents/MacOS/Google Chrome
opens that profile properly.I try to find the way to use profile directory name. But I couldn't.