I have a "youtube" gnome application that launches a "youtube" firefox profile. It has a youtube icon so that it is recognizable in the app list. The problem is that once started, it get the firefox icons and is groupes with all other firefox windows.
I would like to keep the youtube icon and keep it separated from the "standard" firefox windows in the dock. Is it possible ?
The youtube.desktop file :
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Youtube
Comment=Watch videos on Youtube
Type=Application
Exec=/usr/bin/firefox -no-remote -P youtube https://www.youtube.com/
Icon=/home/me/.local/share/applications/youtube_logo.png
I've tried the "WMClasses" solutions described here : Firefox profiles with different icons in Ubuntu dock but it seems outdated : with firefox 100.0.2, firefox --class test
creates a windows with wmclass=firefox
firefox -h
states it's-P
not-p
but I've tried and both works. The selection profile is fine, that's not the problem. The problem is to have 2 separate icons in the dock when using 2 profile (or when starting from a different desktop entry) – MoaMoaK May 30 '22 at 18:27Exec=/usr/bin/firefox -no-remote -P youtube --class youtube https://www.youtube.com/
StartupWMClass=youtube
and nothing is changed. Using "Looking Glass", I still seewmclass: firefox
. I wonder if this something related to Wayland vs X11 ? – MoaMoaK May 30 '22 at 21:38