Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Pomoc pśepytaś

Glědajśo se wobšudy pomocy. Njenapominajomy was nigda, telefonowy numer zawołaś, SMS pósłaś abo wósobinske informacije pśeraźiś. Pšosym dajśo suspektnu aktiwitu z pomocu nastajenja „Znjewužywanje k wěsći daś“ k wěsći.

Learn More

set default profile from the command line

  • 3 wótegrona
  • 1 ma toś ten problem
  • 16 naglědow
  • Slědne wótegrono wót gitdev-bash

more options

How do i set the default profile from the command line on windows? I am trying to create an automation script. Thanks

How do i set the default profile from the command line on windows? I am trying to create an automation script. Thanks

Wšykne wótegrona (3)

more options

This is the shortcut I use to open the current browser to youtube;

"C:\Program Files\Mozilla Firefox_Current\firefox.exe" -p default-release YouTube.com

Note the -p switch to open a selected profile. Not needed if you only have one profile.

more options

You can't set the default profile via the command line, if Firefox is set to remember the last used profile in the profile manager then this profile will be set automatically as 'Default=1' in profiles.ini. Otherwise you would have to parse profiles.ini and remove the 'Default=1' flag for the currently set profile and then set it to the wanted profile. See also:

more options

cor-el said

You can't set the default profile via the command line, if Firefox is set to remember the last used profile in the profile manager then this profile will be set automatically as 'Default=1' in profiles.ini. Otherwise you would have to parse profiles.ini and remove the 'Default=1' flag for the currently set profile and then set it to the wanted profile. See also:

Well i guess i have to make this small batch script into a full blown python program :( Thanks for the reply btw.

I hope a flag like: `--set-default-profile` could be added in the future.

Wót gitdev-bash změnjony