dmenu and Firefox Profiles

I use a few firefox profiles and since there is not a quick and easy profile switcher/loader addon, I’ve taken to using dmenu/roif to start firefox in the right profile. It will look like this:

This desktop entry will run firefox with the profile called ‘work’.

$HOME.local/share/applications/firefox-work.desktop

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Name=Firefox Work
Type=Application
GenericName=Firefox Work Profile
Comment=Firefox but work profile
Exec=firefox -P work
Icon=firefox
Terminal=false
Type=Application
Categories=Network;WebBrowser;
Keywords=web;browser;internet;

The important line is:

Exec=firefox -P work