open-url-in-container
open-url-in-container copied to clipboard
Open in correct profile.
I have 2 firefox profiles I want to open the URL in my default profile but using the bash script on my mac opens the url in both profiles. If I only have one profile open then it opens in that one.
the reason of the container tabs is to not need to use different firefox profiles . . . so I am curious why are you using them both combined? What is missing from Container Tabs that makes need for the Profile separation?
I use this for work, I have a completely separate profile in which I'm logged into my FF Sync account but for work I use different containers for customer work to keep it organized.
I understand. I haven't tested this because I dont have multiple profiles but this should work in theory:
$ firefox -P "<profile name>" 'ext+container:name=MyContainer&url=https://mozilla.org'
Unfortunately that didn't work.
/Applications/Firefox.app/Contents//MacOS/firefox -P "default" 'ext+container:name=MyContainer&url=https://mozilla.org'
in my profile with containers it opened it in a new container called MyContainer, in the other profile it opened a google search for the url i passed in (ext+container:name=MyContainer&url=https://mozilla.org
).
As a followup. When I try:
/Applications/Firefox.app/Contents//MacOS/firefox -P "Personal" 'ext+container:name=MyContainer&url=https://mozilla.org'
I get an error A copy of Firefox is already open. Only one copy of Firefox can be open at a time.
If my FF Personal profile is open I get the above, if it is not FF crashes and it does not launch.
I do have containers and this plugin installed in both.
I just tried it with "default" as the profile and it correctly worked and did not launch in the other profile. This means it now launches into the default profile, and only default profile. This works for my use case but I'm unsure if this new development would be a bug or not.
Hey @blade2005, thanks for your report! Unfortunately, I was not able to reproduce it. I also use multiple profiles, and URLs open only in one — the one specified with the -P <profile>
flag, or the default one (if no profile name specified). Maybe it's related to the MacOS version of Firefox, I'll try to reproduce it there once I get access to MacOS.
I've since moved off of MacOS and am now on Linux. This works well for me now.
Good choice @blade2005! :laughing: (joking)
At the same time, I'll keep this issue open and will try to reproduce it to fix it for other MacOS users :)