Tips & Tricks, Tutorials, Hacking, Troubleshooting,

There may be various reasons why you might want to run multiple Firefox profiles at one time. You may want to test extensions without affecting your current setup, create a minimal profile for checking email, or you may just want to use a clean profile sometimes.

There is a way you can run multiple instances of Firefox, each running a separate profile using specially-created Firefox shortcuts. We will show you how to create special shortcuts in Windows 7 and special launchers in Ubuntu 10.10. The procedures for each operating system should work the same way in earlier versions of the same operating system.

First, you need to create a new profile, if you only have one. Our previous post, Speed Up the Start Time for Firefox by Creating a New Profile, shows you how to create a new profile, so we won’t cover that again here. However, we will show you how to open the Firefox Profile Manager in Ubuntu. Once open, the Profile Manager operates the same way in both Windows and Linux.

IMPORTANT: In the post mentioned above, you are told to turn off the Don’t ask at startup check box on the Profile Manager. To run multiple Firefox profiles at once, make sure that check box is turned on (has a check mark in it).

To access the Firefox Profile Manager in Ubuntu, press Alt + F2. Enter the following command in the edit box and click Run.

/usr/bin/firefox -P

NOTE: The icon automatically sets to the Firefox icon once you type the full path to the Firefox executable file.

Opening the Profile Manager in Ubuntu

Once the Profile Manager is open, you can follow the steps in the post mentioned above to create a new profile in Ubuntu. The steps for creating a new profile in Ubuntu are the same as they are for creating a profile in Windows.

The next step is to create another Firefox shortcut for each profile you want to open. First, we will create shortcuts in Windows 7.

Right-click on an empty area of the desktop and select New | Shortcut from the popup menu.

Creating a new shortcut in Windows 7

The Create Shortcut dialog box displays. Click the Browse button to select the location of the Firefox executable file for the shortcut.

Clicking the Browse button to select the location for the shortcut

On the Browse for Files or Folders dialog box, navigate to the location of the Firefox executable file (generally found at C:\Program Files\Mozilla Firefox) and select the firefox.exe file. Click OK.

Browsing for the Firefox executable file

You are returned to the Create Shortcut dialog box. The full path to the Firefox executable file is inserted in the Type the location of the item edit box. Put the cursor at the end of that path, and type a space followed by the following text.

-P {Profile Name} -no-remote

Replace {Profile Name} with the name of one of your Firefox profiles.

NOTE: All the dashes are single dashes and there is one space on each side of the {Profile Name}.

Click Next.

Adding the profile name to the shortcut command

Enter a descriptive name for the shortcut in the Type a name for this shortcut edit box and click Finish.

Entering a name for the shortcut

The new shortcut is added to the desktop. Follow the same steps above to create other shortcuts for other profiles you have created in Firefox.

New Firefox shortcut in Windows 7

NOTE: When you have multiple Firefox windows open in Windows 7 with different profiles, the icons on the Taskbar look the same. If you have a different web page open on the active tab in each Firefox window, you can tell the windows apart by moving your mouse over the Firefox icons on the Taskbar. The name of the currently open web page displays.

Multiple Firefox icons on Taskbar

If you want your shortcut available on the Start menu or the Taskbar, right-click the shortcut and select Pin to Start Menu or Pin to Taskbar, respectively, from the popup menu.

Pinning a shortcut to the Start menu

Now, we will create Firefox launchers in Ubuntu. You can add launchers to the desktop, the panels, and the menu in Ubuntu.

To add a launcher to the desktop, right-click on the Ubuntu desktop and select Create Launcher from the popup menu.

Creating a new desktop launcher in Ubuntu

The Create Launcher dialog box displays. Enter a name for the launcher in the Name edit box. Type the following command in the Command edit box.

/usr/bin/firefox -P Lori -no-remote

NOTES: The dashes and spaces in the command are the same as they are for Windows. Also, once you type “/usr/bin/firefox”, the icon automatically changes to the Firefox icon.

Enter a comment for the launcher in the Comment edit box. Click OK.

Entering launcher information

The new launcher is added to the desktop. Follow the same steps above to add launchers for other Firefox profiles you have created.

New launcher on desktop in Ubuntu

You can also add launchers to different Firefox profiles to a panel if desired. To do this, right-click on a panel and select Add to Panel from the popup menu.

Selecting Add to Panel option on top panel

The Add to Panel dialog box displays. Select Custom Application Launcher and click Add.

Selecting Custom Application Launcher

Fill out the information on the Create Launcher dialog box the same way you did when creating a desktop launcher. Click OK.

Entering launcher information

If you want to add more launchers to the panel for different Firefox profiles, leave the Add to Panel dialog box open, and select Custom Application Launcher and then click Add for each launcher you want to create. Fill out the Create Launcher dialog box using the appropriate Firefox profile name in the Command and entering a descriptive Name and Comment.

When you are finished creating the desired launchers, click Close to the close the Add to Panel dialog box.

Closing the Add to Panel dialog box

Here’s an example of a Firefox launcher on the top panel for a specific profile.

New launcher on the top panel in Ubuntu

To add a launcher to the Applications menu, right-click on the menu bar and select Edit Menus from the popup menu.

Selecting Edit Menus

The Main Menu dialog box displays. Select the Internet submenu under the Applications menu in the list on the left. Click the New Item button. The Create Launcher dialog box displays again, just like when you added a launcher to the desktop and one to the panel. Fill it out as before.

Clicking New Item on the Main Menu dialog box

The launcher is added to the list of items on the Internet menu. If you want to move it from the default location, select the item and use the Move Up and Move Down buttons. Use the New Item button for every launcher you want to add to the menu. When you are finished adding your launchers to the menu, click Close on the Main Menu dialog box to close it.

New item created

Any launchers you created are added to the Internet menu on the Applications menu.

New item on the Internet menu on the Applications menu

Using multiple profiles can help you organize your work, performing certain categories of tasks in each profile. This is similar to using multiple desktops in Windows and Ubuntu (see our posts, Organize the Windows Desktop Using a Virtual Desktop Manager – Part I, Organize the Windows Desktop Using a Virtual Desktop Manager – Part II, and Use Multiple Workspaces in Ubuntu).

In fact, you can have a different profile to match the purpose of each virtual desktop you set up in Windows and the same for each workspace you set up in Ubuntu.

No comments:

Post a Comment