So, I have been forced to press an Ubuntu box using 32-bit Wine packages to help someone keep an old application written for Windows NT running a little longer. (yes, I know, horrible idea, they should get new software, they have been warned).
Multiple users are able to run the software via XRDP from Windows workstations, this is actually all working great, even better than I would have predicted.
The glitch comes in when the user logs off, the system doesn’t actually log off, it just refreshes the RDP session, no matter how many times you try to disconnect. Of course you can force a disconnect on the Windows side, but that leaves the user session still running at the other end, which sometimes becomes a problem. I’ve tried MATE, XFCE, and the default Unity desktop environment, same problem with each thus far. How can I make the logoff function actually trigger the end of the user session?