The goal was to make chromium desktop icon, that was created for a second profile, appear in the Dash and the app switcher (alt+tab) as an independent app icon. I gave that .desktop
a StartupWMClass
entry and added a --class
flag as suggested here, but the problem remained because I believe that chromium changes the wm class name to the default one after the launch.
Tried to fiddle with some code via looking glass, but no success there.
For reference, I used the following functions:
imports.gi.Shell.AppSystem.get_default() // Shell.AppSystem (https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/src/shell-app-system.c)
imports.gi.Shell.AppSystem.get_default().get_running() // [ Shell.App ] (https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/src/shell-app.c)