3 ms·
Alternately, http://kb.mozillazine.org/Command_line_arguments http://kb.mozillazine.org/Command_line_arguments -P "<profile name>" Starts with a given pro
by dmckeon 10y ago
Alternately,
http://kb.mozillazine.org/Command_line_arguments http://kb.mozillazine.org/Command_line_arguments
-P "<profile name>" Starts with a given profile name (profile name is case sensitive).
-no-remote Enables running multiple instances of the application with different profiles; [1] used with -P
#!/bin/bash
case "$1" in
personal | work | banking | shopping)
firefox -no-remote -P "$1" ;;
*) echo "unknown arg: $1"; return 1; ;;
esac
and either rename profile directories, or the case statement labels,
and optionally associate calls to the script with icons/widgets.
[code not tested, use at own risk, ymmv, etc.]
- cpeterso 10y agoYou an also manage your Firefox profiles using the about:profiles page.
- JadeNB 10y ago> http://kb.mozillazine.org/Command_line_arguments http://kb.mozillazine.org/Command_line_arguments However, stymaar (https://news.ycombinator.com/item?id=11916985 https://news.ycombinator.com/item?id=11916985 )'s suggestion seemed to be specifically about avoiding the command line: > I have an advice for you though, you don't need to open Firefox from a terminal if you want to be able to choose your profile at start-up. I don't know, on Mac or Windows, how (although it would be nice) to wrap your script, or any other command-line executable, as an app that takes its arguments as parameters specified on double-click.