Firefox/Chrome Profile App Launchers
If you share a computer and want separate bookmarks/extensions without multiple OS users, using multiple web browser profiles is the solution. In Windows, creating a new browser profile will create an app launcher for you, but in Linux you have to do it manually.
In KDE Plasma, you can use kmenuedit
to create a new app launcher, however it cannot edit right click actions like “New Window” and “New Incognito Window”.
Instead lets copy /usr/share/applications/google-chrome.desktop
to our local directory.
~/.local/share/applications/google-chrome-chris.desktop
The --profile-directory
will either be Default
or Profile 1
. Visit ~/.config/google-chrome/
to check.
The StartupWMClass
should tell the window manager (KWin) and taskbar widget (Plasma TaskManager) to not group these windows with the normal google_chrome
windows.
You’ll notice that I set the icon to an unknown icon. That’s because I created a few custom icons to match chrome’s builtin profile icons.
Save the following SVG icons to:
~/.local/share/icons/google-chrome-avatar-generic-green.svg
Chrome:
Once you’ve finished creating the .desktop
file, open up the Konsole terminal app and run the following command to refresh the application list.
Finally drag the app to your panel’s task manager widget to pin it there.
Firefox
The process for Firefox is the same as Chrome, however the firefox-chris.desktop
file should be based on /usr/share/applications/firefox.desktop
instead.
The -P profileId
argument can be determined by entering about:profiles
in the Firefox addressbar. It should be either default
or name
.
You also need to pass the same value as StartupWMClass
to firefox in --class
.
Here’s a couple of icons based on Chrome’s profile avatars. You can easily recolor them with Inkscape.
Firefox: