I run Ubuntu 14.04 and want to use one installation of Firefox with two different profiles for the same logged in Ubuntu user.
How can I set this up, so that I may easily launch both profiles from the Unity launcher?
desktopfirefoxlauncher
I run Ubuntu 14.04 and want to use one installation of Firefox with two different profiles for the same logged in Ubuntu user.
How can I set this up, so that I may easily launch both profiles from the Unity launcher?
Best Answer
How to set up different Firefox profiles for the same Ubuntu user and the same Firefox installation
Excerpt of the command-line options from
man firefox
:So you just need to start Firefox with one of those parameters by either using a terminal, the Alt+F2 HUD, from the launcher icon's context menu after editing its configuration file, which I will describe below.
Set up a new profile:
Launch Firefox's ProfileManager from the terminal or with Alt+F2:
Rename your current profile
default
toprofile1
(or whatever you like, you don't even have to rename it, but I will do in this guide for clarification - you just have to replaceprofile1
with your exact name wherever it occurs!) by clicking on Rename Profile....Create a new profile with the wizard by clicking on Create Profile.... It will show you an info window first, read it and click Next. The second window will ask you to enter a name for the profile, enter
profile2
here (or replace it wherever it occurs in this guide with exactly what you entered instead). I would recommend you not to change the folder where the profile will be stored in, unless you have a good reason to do so. Click Finish.Exit the ProfileManager.
Set up your launcher icon to access those profiles from the context menu:
Copy the original launcher file (which is owned by root, used system-wide and will get replaced with the next update) to your home folder:
Edit the copy e.g. with either Gedit (GUI) or Nano (terminal):
Search for the line:
and add new context menu action identifiers like this (example names, but only used within the file, you won't see them anywhere else):
Insert the code snippet below at the end of the file, you may vary the
Name=
value and add as many translations as you want (example for German [de] is given). TheExec=firefox -P ...
lines have to contain the exact (case-sensitive) name of the profiles you created in the profile manager! The-no-remote
flag allows multiple firefox profiles to run at the same time. Also the last word in the lines[Desktop Action ...]
has to exactly match the keys you added to theActions=
line above.Now if you want to specify a permanent default profile for when you left-click the launcher icon (otherwise the profile you last used through the ProfileManager with the respective checkbox ticked gets launched), you also have to edit the main
Exec=
line. It's the topmost and should look like this:Edit it to look like the one below, maybe replacing
profile1
with the correct default profile name you wish.You have to reboot (maybe logging out and back in is also enough?) before the system realizes that you want to override the system-wide
firefox.desktop
file and use your personal and customized one. Or you can use the commandto re-initiate the launcher file. After that, enjoy your multiple profiles!