Hello,
But Layout Switcher is written in python and some css for GTK3.
You will always get that when running Gnome Desktop, with or without Layout Switcher.
If you run that command in KDE Plasma, you guess it, it will show
KDE
If you run
echo $XDG_SESSION_TYPE
it will either point to X11
or Wayland
depending what you chose, but on Gnome, running echo $XDG_CURRENT_DESKTOP
will always report GNOME.
We used to have 6 layouts as presented here
Due to Gnome 42 changes now there are only 4, but on my install there is no issue with the Layouts images regardless what i chose and click and is active.