The problem is that if I disconnect from RDP, then GDM always kills the session: everything running is killed.
Is it possible to leave the headless session running in the background? I would like to be able to disconnect, then reconnect to find my existing session as it were…
Yes, but this is about graphical login, not a detachable terminal. The feature I am talking about gives you a full headless GUI session where you can run any app (e.g. even Firefox, or Lireoffice). I want to be able to detach this GUI session and then resume it when I log in again (like Windows does when you use Remote Desktop).
Ok, I have found what I am describing is actually an open issue that is already logged in the project. They refer to it as “persistent headless sessions”.
Fortunately, it’s already being actively worked on. See: