I've Raspbian Buster installed on Raspberry Pi 4. I installed XRDP by first removing/purging RealVNC server (according to some sources on the web, they cannot coexist peacefully) and then installing XRDP itself. It works fine with an exception: on remote session i have wrong keyboard layout. It always defaults to US layout instead the one I need (Slovenian). In the past I have used steps below to change default layout which worked for me OK on Jessie and Stretch, i.e:
sudo xrdp-genkeymap km-00000424.ini
sudo mv km-0424.ini /etc/xrdp
sudo
chown root:root /etc/xrdp/km-00000424.ini
sudo service xrdp restart
km-00000424.ini is layout for Slovenian XRDP keyboard. Layout names for other languages can be found at https://sourceforge.net/p/rdesktop/code/1704/tree/rdesktop/trunk/doc/keymap-names.txt.
Unfortunately the steps above are not working for me on Buster/RPi4. I spent quite a lot of time trying to find possible solution but without success.
I think this can be due to some changes either in Buster or in current XRDP version (it is version 0.9.10). I wonder if there's anyone who knows how this should be done or at least who can point me somewhere where I can find current (not obsolete) info??