X
Tap here to go to the mobile version of the site.

Support Forum

Launch 2 different profiles without profile manager

Posted

Hi,

How can I replicate this (link below) in a Mac (OSX 10.10)?

http://kb.mozillazine.org/Shortcut_to_a_specific_profile

Essentially, should be able to launch to different profiles from two different firefox icons/installations/instances without launching profile manager on each startup to select the profile.

Hope my question is clear. Please let me know if I should further clarify.

Thanks in advance.

Hi, How can I replicate this (link below) in a Mac (OSX 10.10)? http://kb.mozillazine.org/Shortcut_to_a_specific_profile Essentially, should be able to launch to different profiles from two different firefox icons/installations/instances without launching profile manager on each startup to select the profile. Hope my question is clear. Please let me know if I should further clarify. Thanks in advance.
Quote

Additional System Details

Application

  • User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:53.0) Gecko/20100101 Firefox/53.0

More Information

cor-el
  • Top 10 Contributor
  • Moderator
15577 solutions 141049 answers

Helpful Reply

You would need separate launchers on the desktop or on the Doc to start each instance via a bash script that specifies the profile via the -P switch and the profile name as listed in the Profile Manager.

#!/bin/sh

/Applications/Firefox.app/Contents/MacOS/firefox -P "<profile_name>"

You would need separate launchers on the desktop or on the Doc to start each instance via a bash script that specifies the profile via the -P switch and the profile name as listed in the Profile Manager. *https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options#Mac_OS_X <pre><nowiki>#!/bin/sh /Applications/Firefox.app/Contents/MacOS/firefox -P "<profile_name>" </nowiki></pre>
Was this helpful to you? 2
Quote

Question owner

.....

.....

Modified by lookingtolearn

Was this helpful to you?
Quote

Question owner

cor-el said

You would need separate launchers on the desktop or on the Doc to start each instance via a bash script that specifies the profile via the -P switch and the profile name as listed in the Profile Manager.
#!/bin/sh

/Applications/Firefox.app/Contents/MacOS/firefox -P "<profile_name>"

Thank you cor-el,

Your script works for my main firefox icon.

I have another firefox application installed in another folder (called Applications Simultaneous). This folder is in the same folder/directory as the original Applications folder that contains the original Firefox.app. I have the icon (which I changed) of this FF app on the icon too.

I tried renaming your script to:

#!/bin/sh
/Applications Simultaneous/Firefox.app/Contents/MacOS/firefox -P "<profile_name>"

but I got the message (which I don't know what it means): -bash: /Applications: is a directory

I've written command lines in Terminal before but I'm no expert. How can I make this work for the second icon (to launch a different profile)?

''cor-el [[#answer-976063|said]]'' <blockquote> You would need separate launchers on the desktop or on the Doc to start each instance via a bash script that specifies the profile via the -P switch and the profile name as listed in the Profile Manager. *https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options#Mac_OS_X <pre><nowiki>#!/bin/sh /Applications/Firefox.app/Contents/MacOS/firefox -P "<profile_name>" </nowiki></pre> </blockquote> Thank you cor-el, Your script works for my main firefox icon. I have another firefox application installed in another folder (called Applications Simultaneous). This folder is in the same folder/directory as the original Applications folder that contains the original Firefox.app. I have the icon (which I changed) of this FF app on the icon too. I tried renaming your script to: #!/bin/sh /Applications Simultaneous/Firefox.app/Contents/MacOS/firefox -P "<profile_name>" but I got the message (which I don't know what it means): -bash: /Applications: is a directory I've written command lines in Terminal before but I'm no expert. How can I make this work for the second icon (to launch a different profile)?

Modified by lookingtolearn

Was this helpful to you?
Quote
cor-el
  • Top 10 Contributor
  • Moderator
15577 solutions 141049 answers

Best would be to avoid using a Space character in folder names to prevent such issues. You likely need to add quotes around the path name in case of embedded spaces and may use 'cd'

#!/bin/sh

cd "/Applications Simultaneous/Firefox.app/Contents/MacOS"
./firefox -P "<profile_name>"
Best would be to avoid using a Space character in folder names to prevent such issues. You likely need to add quotes around the path name in case of embedded spaces and may use 'cd' <pre><nowiki> #!/bin/sh cd "/Applications Simultaneous/Firefox.app/Contents/MacOS" ./firefox -P "<profile_name>" </nowiki></pre>
Was this helpful to you?
Quote

Question owner

cor-el said

Best would be to avoid using a Space character in folder names to prevent such issues. You likely need to add quotes around the path name in case of embedded spaces and may use 'cd'
#!/bin/sh

cd "/Applications Simultaneous/Firefox.app/Contents/MacOS"
./firefox -P "<profile_name>"


Thank you again cor-el but it doesn't seem to be working without being called via terminal. When I use terminal to change the profile, it seems to effect both FF installations.

Firstly let me mention that I have renamed the 'Applications Simultaneous' folder to 'Applicationss', to avoid the space issue.

Secondly, I have only 2 profiles, 'default' (which I haven't changed it's name and contains add-ons) and 'secondffprofile' (which I created using the profile manager dialog/window and is without add-ons).

Thirdly, I know I'm launching the two different installations as, 1) I've used a different icon and 2) I'm launching them directly from their folders (not using the shortcuts in the dock).

To explain more: I used both versions of your command, both cases were unsuccessful. I've included at the bottom, a copy of the commands I used with the actual profile names. After the second command, both FF installations (ie. the one installed in the Applications folder and in the one in the Applicationss folder) launch the secondffprofile. In other words, the commands seem to be affecting both installations and are not installation specific.

Have I done something wrong?


Version 1)

#!/bin/sh
/Applications/Firefox.app/Contents/MacOS/firefox -P "<default>"
#!/bin/sh
/Applicationss/Firefox.app/Contents/MacOS/firefox -P "<secondffprofile>"



Version 2)

#!/bin/sh
cd "/Applications/Firefox.app/Contents/MacOS"
./firefox -P "<defualt>"
#!/bin/sh
cd "/Applicationss/Firefox.app/Contents/MacOS"
./firefox -P "<secondffprofile>"
''cor-el [[#answer-976240|said]]'' <blockquote> Best would be to avoid using a Space character in folder names to prevent such issues. You likely need to add quotes around the path name in case of embedded spaces and may use 'cd' <pre><nowiki> #!/bin/sh cd "/Applications Simultaneous/Firefox.app/Contents/MacOS" ./firefox -P "<profile_name>" </nowiki></pre> </blockquote> Thank you again cor-el but it doesn't seem to be working without being called via terminal. When I use terminal to change the profile, it seems to effect both FF installations. Firstly let me mention that I have renamed the 'Applications Simultaneous' folder to 'Applicationss', to avoid the space issue. Secondly, I have only 2 profiles, 'default' (which I haven't changed it's name and contains add-ons) and 'secondffprofile' (which I created using the profile manager dialog/window and is without add-ons). Thirdly, I know I'm launching the two different installations as, 1) I've used a different icon and 2) I'm launching them directly from their folders (not using the shortcuts in the dock). To explain more: I used both versions of your command, both cases were unsuccessful. I've included at the bottom, a copy of the commands I used with the actual profile names. After the second command, both FF installations (ie. the one installed in the Applications folder and in the one in the Applicationss folder) launch the secondffprofile. In other words, the commands seem to be affecting both installations and are not installation specific. Have I done something wrong? Version 1) #!/bin/sh /Applications/Firefox.app/Contents/MacOS/firefox -P "<default>" #!/bin/sh /Applicationss/Firefox.app/Contents/MacOS/firefox -P "<secondffprofile>" — Version 2) #!/bin/sh cd "/Applications/Firefox.app/Contents/MacOS" ./firefox -P "<defualt>" #!/bin/sh cd "/Applicationss/Firefox.app/Contents/MacOS" ./firefox -P "<secondffprofile>"

Modified by lookingtolearn

Was this helpful to you?
Quote
Ask a question

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.