Elektrine lite

← Feed

@novafunc@discuss.tchncs.de

Here's an easy way to handle multiple Firefox profiles on Linux

2026-05-01 01:43 UTC

On my system, I wanted Firefox profiles to feel like their own browser instances. Meaning, their own app icons and to not be grouped together. Almost like how it is on MacOS. To do this, I had to make multiple .desktop files. Here are the contents of that file. This targets flatpak, but it should work for traditional Firefox installs too. I called this profile “Personal”. Note that this says –profile “/home/USERNAME/.var/app/org.mozilla.firefox/config/mozilla/firefox/personal”. In this, “personal” is a symlink to the real profile folder name located in the same directory. [Desktop Entry] Version=1.0 Type=Application Exec=/usr/bin/flatpak run --env=MOZ_APP_REMOTINGNAME=Personal --branch=stable --arch=x86_64 --command=firefox --file-forwarding org.mozilla.firefox --profile "/home/USERNAME/.var/app/org.mozilla.firefox/config/mozilla/firefox/personal" --name org.mozilla.firefox.Personal --class org.mozilla.firefox.Personal @@u %u @@ Terminal=false X-MultipleArgs=false Icon=/home/USERNAME/.local/share/icons/firefox-heart.png StartupWMClass=org.mozilla.firefox.Personal DBusActivatable=false Categories=GNOME;GTK;Network;WebBrowser; MimeType=application/json;application/pdf;application/rdf+xml;application/rss+xml;application/x-xpinstall;application/xhtml+xml;application/xml;audio/flac;audio/ogg;audio/webm;image/avif;image/gif;image/jpeg;image/png;image/svg+xml;image/webp;text/html;text/xml;video/ogg;video/webm;x-scheme-handler/chrome;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/mailto; StartupNotify=true Actions=new-window;new-private-window; Name=Firefox (Personal) Comment=Fast and private browser GenericName=Web Browser Keywords=Internet;WWW;Browser;Web;Explorer; X-GNOME-FullName=Mozilla Firefox [Desktop Action new-window] Exec=/usr/bin/flatpak run --env=MOZ_APP_REMOTINGNAME=Personal --branch=stable --arch=x86_64 --command=firefox --file-forwarding org.mozilla.firefox --profile "/home/USERNAME/.var/app/org.mozilla.firefox/config/mozilla/firefox/personal" --name org.mozilla.firefox.Personal --class org.mozilla.firefox.Personal --new-window @@u %u @@ Name=New Window [Desktop Action new-private-window] Exec=/usr/bin/flatpak run --env=MOZ_APP_REMOTINGNAME=Personal --branch=stable --arch=x86_64 --command=firefox --file-forwarding org.mozilla.firefox --profile "/home/USERNAME/.var/app/org.mozilla.firefox/config/mozilla/firefox/personal" --name org.mozilla.firefox.Personal --class org.mozilla.firefox.Personal --private-window @@u %u @@ Name=New Private Window

Replies (4)

  • @bishoponarope@lemmy.world 2026-05-01 02:11

    You’re a good man, Charlie Brown. A good solution to a situation I was considering.

    Open ##1850862

  • @IceVAN@beehaw.org 2026-05-01 02:22

    firefox --profilemanager

    Open ##1850877

  • @eldavi@lemmy.ml 2026-05-01 04:23

    i use the container tabs feature in firefox to compartmentalize my usage.

    Open ##1850938

  • @wltr@discuss.tchncs.de 2026-05-01 04:32

    Is this profiles method same / similar to containers or wildly different? Before migrating to Firefox, I used Chrome. Since I had multiple Gmail accounts for no real reason (from old times), I decided why not using different Chrome profiles for different types of tasks. In Firefox, I don’t remember having something similar. That was like 5+ years ago, I believe profiles were there, but perhaps less easy to use. So I ended up using containers, and you know, I quite like them! I use them everywhere, all the time. I have a nice extension called Firefox Multi-Account Containers and some other extension (I need to lookup it from my desktop) that allows opening the container via a CLI parameter. I created a bunch of .desktop files that open a C particular link with a particular container. I use it very heavily, all the time. To the point I don’t really notice I manage various identities for various websites. I tested with ChatGPT, I use various login with Google accounts, for various purposes. So far (over a year or so) I wasn’t banned, even despite often I have multiple accounts opened in sibling tabs. E.g. one generates images, another translates texts, another one helps with some code, and the 4th one helps with some Linux administration. I wonder the use case for profiles. That’s definitely a very nice feature, and it’s very useful. I guess that’s more for separation. For when I don’t want the other profile distracting me. I’d love to learn how others find them profiles useful.

    Open ##1851005