open-url-in-container icon indicating copy to clipboard operation
open-url-in-container copied to clipboard

Open in correct profile.

Open blade2005 opened this issue 5 years ago • 8 comments

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.

blade2005 avatar Feb 18 '20 16:02 blade2005

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?

MichaelTunnell avatar Feb 25 '20 21:02 MichaelTunnell

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.

blade2005 avatar Feb 25 '20 21:02 blade2005

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'

MichaelTunnell avatar Feb 25 '20 22:02 MichaelTunnell

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).

blade2005 avatar Feb 26 '20 15:02 blade2005

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.

blade2005 avatar Mar 02 '20 13:03 blade2005

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.

honsiorovskyi avatar May 09 '20 11:05 honsiorovskyi

I've since moved off of MacOS and am now on Linux. This works well for me now.

blade2005 avatar Jul 16 '20 00:07 blade2005

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 :)

honsiorovskyi avatar Jul 16 '20 22:07 honsiorovskyi