I've tried $GDMSESSION but it just outputs 'ubuntu.', not showing which windowing system like x11 or wayland?
How do I determine which am I using? Wayland or X11 only in 'command line' simply?
I use Kubuntu and this works for me.
fred@z690-jammy:~$ echo $XDG_SESSION_TYPE x11