xrdp disconnects immediately after connection from Windows10/Centos to Centos7

I solved the issue myself, hopefully someone else will find it usefull. I took a look at ~/.xsession-errors, it contained:

(imsettings-check:16467): IMSettings-WARNING **: 04:42:56.491: Could not connect: Connection refused

(imsettings-check:16467): GLib-GIO-CRITICAL **: 04:42:56.491: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed
GLib-GIO-Message: 04:42:56.807: Using the 'memory' GSettings backend.  Your settings will not be saved or shared with other applications.

** (process:16260): WARNING **: 04:42:56.824: Could not make bus activated clients aware of XDG_CURRENT_DESKTOP=GNOME environment variable: Could not connect: Connection refused

and then I've googled a rootcause, miniconda installation has broken PATH in .bashrc file, I have removed this line and it has fixed it:

    export PATH="/home/stiv/miniconda3/bin:$PATH"

UPDATE: Later I've found x2go, which works way more reliable and faster then XRDP.