Changing Windows Manager for RDP session...

So, I’ve converted both my main boxes as well as laptops over to Kubuntu 24.04 LTS.
Everything is working great on both machines, but I’m having a weird issue when I try to RDP from my main box into my laptop.
I was following some instructions online for getting XRDP working in Ubuntu, and part of the instructions were regarding xfce:

echo “xfce4-session” | sudo tee /etc/xrdp/startwm.sh

So, even though both the laptop and main box are running Plasma(X11) as their desktop, this command somehow forces the RDP session into the laptop to run in XFCE.

I tried several times to re-run that echo | tee command with different sessions, but none of them worked. I’m pretty sure I was not naming them properly.

Can anyone tell me how to change the WM just for the RDP?

Thanks.

The /etc/xrdp/startwm.sh is the right place for it.

I’d put in /usr/bin/startxfce4 (whith path) and make sure the script is executable.