Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I agree that Firefox profile management is not user-friendly at all. 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.

«all» you have to do is go to ~/.mozilla/firefox/profile.ini and change it with:

```

[General]

StartWithLastProfile=0

```

Now Firefox will open a dialogue box at start-up asking you for the profile you want to use.



Alternately,

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


> http://kb.mozillazine.org/Command_line_arguments

However, stymaar (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.


You an also manage your Firefox profiles using the about:profiles page.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: