Using Remote Desktop Connection to connect manjaro installed with xrdp faile because of "Error connecting to user session"

I want to use Remote Desktop Connection to connect Manjaro, i config manjaro like this:

yay -S xrdp
sudo pacman -S xorgxrdp
systemctl start xrdp
systemctl enable xrdp
systemctl status xrdp.service


kate /etc/X11/Xwrapper.config # add `allowed_users=anybody`
kate ~/.xinitrc # change `local dbus_args=(--sh-syntax --exit-with-session)` to ` local dbus_args=(--sh-syntax)`

systemctl restart xrdp

And then i connect manjaro in windows using Remote Desktop Connection, but i faild like this:

connecting to sesman on 127.0.0.1:3350
sesman connect ok
sending login info to session manager. Please wait...
login successful for user shy on display 10
started connecting
connecting problem, giving up
some problem
Error connecting to user session

I wonder how to solve this problem, thank you!

My system is Manjaro KDE Plasma, 5.25.5
CPU:i7-12700F
GPU: RTX 3070

If i config VNC and using VNC Viewer on windows to connect VNC under mode xfce, everything is ok, but if i change xfce to plasma, VNC Viewer will see an black screen.

1 Like