65

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

OC by @novafunc@discuss.tchncs.de

top 16 comments
sorted by: hot top controversial new old
[-] cecilkorik@piefed.ca 15 points 3 weeks ago

.desktop files are great. Everyone who's using Desktop Linux should spend some time learning about how they work and what they can do. They take quite a bit of learning to really understand everything they're doing and how they integrate into different window systems etc, but they're so much nicer than Windows janky shortcuts/registry garbage. It's worth the time investment to learn them.

[-] wltr@discuss.tchncs.de 3 points 3 weeks ago

Yes, I second that! I use desktop Linux on and off for like 20 years, with more like on 10 years now, and to my shame, it was about a month or two ago (well, half a year maybe, time flies!) I learned about desktop files. They are so good, I use them for everything now (via application launcher, I use fuzzel). I automated quite a lot with a combination of a simple bash script plus a desktop file to run it. Wish I learned that years ago!

[-] harmbugler@piefed.social 2 points 3 weeks ago

Indeed, and you can pick up the basics in just a few minutes. Bottles recently implemented automatic .desktop files, so you can even get Windows app icons easily without the garbage!

[-] elmicha@feddit.org 2 points 3 weeks ago

I see several options that start with >--, like >--env=MOZ_APP_REMOTINGNAME=Personal - are these copy and paste errors or is it a special syntax that is described somewhere?

[-] olafurp@lemmy.world 2 points 3 weeks ago

I know I'm a terminal type but why not just use a bash alias?

[-] esc@piefed.social 3 points 3 weeks ago

Because not everyone wants to start browser from teminal? Like they said they want different pictograms for different profiles.

[-] olafurp@lemmy.world 2 points 3 weeks ago

Yeah, that's probably a me thing, I like starting programs from the terminal. With a decent command runner doing a ctrl+r, ff<enter> (variants ffw or ffs for different profiles) is usually faster than reaching for a mouse. It's also faster than Meta, wait, "fire", wait again, <enter>.

I do get that most people don't use the terminal, although it's very nice, highly recommend.

@esc @olafurp
couldnt you create different dotdesktop files to make shortcuts for this then?

[-] esc@piefed.social -1 points 3 weeks ago

wtdym? That's exactly what was done?

@esc lol sorry i completely misread the thread my bad. i do concur then carry on

[-] sip@programming.dev 2 points 3 weeks ago

I use a script registered as the default browser rhat launches rofi which greps and stuff the profiles.ini for the profiles. then launches.

[-] illusionist@lemmy.zip 1 points 3 weeks ago* (last edited 3 weeks ago)

Nice.

There's also a gnome extension for a button in the top bar. But only for the old profiles, not the new ones (not that I wanted the trashy new ones anyway)

[-] wltr@discuss.tchncs.de 2 points 3 weeks ago

What’s the difference? I surely missed the whole thing, I only remember some announcement about the new profiles being simpler and all that. What really changed? And what are you missing with the new implementation?

[-] illusionist@lemmy.zip 1 points 3 weeks ago

Iirc, you can't have two distinct sets of bookmarks. My "work" profile has to have the same bookmarks as my "private" one.

[-] wltr@discuss.tchncs.de 2 points 3 weeks ago

Is it the new thing? As it sounds very absurd to me. The only point of having a separate profile to me is to have a separate sync account, set of bookmarks, and extensions. If it’s all united, what’s the point in having them at all then?

[-] Washhouse0749@sh.itjust.works 1 points 3 weeks ago

Keybinds with firefox -p profilename, three of those at the moment

this post was submitted on 01 May 2026
65 points (94.5% liked)

Linux

13755 readers
162 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS