14

I followed the instructions present here in order to use two Firefox profiles simultaneously. But I would like to make this process faster by starting each profile from its own shortcut. How do I create a shortcut to launch each profile?

2 Answers 2

14

You can use your menu launcher creator (or right click the desktop and select new launcher, depending on what desktop you are on) to fashion two new firefox launchers. The command you need for each launcher is, for example:

firefox -Profile /home/mike/.mozilla/firefox/55divdmr.Mike2 -no-remote

This will launch firefox with that profile and make sure that it doesn't connect to any other running instance of firefox with the essential -no-remote switch.

If you wanted to do it manually, the desktop shortcut would look something like this; you could create it in a text-editor and name it firefox2.desktop:

[Desktop Entry]
Type=Application
Name=fox2
Comment=my second profile
Exec=firefox -Profile /home/mike/.mozilla/firefox/55divdmr.Mike2 -no-remote
Path=/home/mike
Icon=/my/icon/location
Terminal=false
StartupNotify=false

Something else I recommend is going to your firefox folder ( mine is /home/mike/.mozilla/firefox) and checking that the StartWithLastProfile setting in profiles.ini is false:

[General]
StartWithLastProfile=0

This is because it can get confusing if you are using different profiles and you start firefox as normal without using a special shortcut and it just loads the last profile used.

You can also get prompted each time for which profile to use by making sure 'don't ask at startup' is unchecked, which is in the firefox ProfileManager settings below. This setting is reached with

firefox -ProfileManager -no-remote

as noted in the question you referred to.

enter image description here

For more information on the command switches available for firefox see man firefox or the Ubuntu manpages online. Further support is available at mozilla.org.

0
3

I find this works:

  1. Open file explorer
  2. Navigate to /usr/share/applications
  3. Right-click on the Firefox link and select copy
  4. Click on your desktop and select paste
  5. Right click on the icon that has just been created and select properties
  6. On the Basic tab fill command: firefox -no-remote -P "profile name"
  7. On the Permissions tab check Execute

ScreenShot

Done!

3
  • Simple and good May 8, 2015 at 3:35
  • Can't find Firefox in that folder Mar 7, 2023 at 16:50
  • For me the path was /var/lib/snapd/desktop/applications/firefox_firefox.desktop
    – Alwinius
    Oct 15, 2023 at 13:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .