I’m using Manjaro Linux and have multiple profiles set up in Firefox. Right now, when I click on the Firefox icon in the panel, it only opens my default profile. I then have to go to about:profiles and manually click “Launch profile in new browser” for each additional profile I want to open.

This is a bit tedious. I’m wondering if there’s a way to open all Firefox profiles at once when launching the app.

  • sebi@lemmy.world
    link
    fedilink
    arrow-up
    8
    ·
    edit-2
    1 year ago

    When starting Firefox with the command line, you can specify the profile you want to open with -P

    So firefox -P "Joel User" starts the profile ‘Joel User’.

    Further reading

    • slaecker@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      1 year ago

      Add --no-remote to start different profiles simultaneously.

      Example:

      firefox -P 'Joel User' --no-remote

    • jet@hackertalks.com
      link
      fedilink
      English
      arrow-up
      5
      ·
      edit-2
      1 year ago

      Exactly this. Make a launch script that runs over all your profiles and launches them independently

    • CoderSupreme@programming.devOP
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      To open all Firefox profiles at once when launching the app in Manjaro Linux, you can create a script that launches each profile in a new instance. Follow these steps:

      1. First, make sure you know the names of your Firefox profiles. You can check this by running firefox -P in the terminal, which will open the profile manager.

      2. Create a new script file, for example, launch_all_profiles.sh, and open it with a text editor.

      3. Add the following lines to the script, replacing Profile1, Profile2, etc., with the names of your actual profiles:

      #!/usr/bin/env bash
      firefox --no-remote -P Profile1 &
      firefox --no-remote -P Profile2 &
      # Add more lines for additional profiles if needed
      
      1. Save the file and make it executable by running the following command in the terminal:
      chmod +x launch_all_profiles.sh
      
      1. Now, you can run the script by executing ./launch_all_profiles.sh in the terminal. This will launch all your Firefox profiles at once.

      If you want to launch all profiles by clicking the Firefox icon in the panel, you can modify the Firefox desktop file to execute the script instead of the default Firefox command:

      1. Copy the original Firefox desktop file to your local applications directory:
      cp /usr/share/applications/firefox.desktop ~/.local/share/applications/
      
      1. Open the copied desktop file with a text editor:
      nano ~/.local/share/applications/firefox.desktop
      
      1. Find the line starting with Exec= and replace the existing command with the path to your launch_all_profiles.sh script. For example:
      Exec=/home/your_username/path/to/launch_all_profiles.sh
      
      1. Save the file and close the text editor.

      Now, when you click the Firefox icon in the panel, it should launch all your profiles at once.