There seems to be a solution for this already, slated to be deployed with Gnome 47. Could it possibly be backported in Ubuntu 24.04?
https://gitlab.gnome.org/GNOME/gnome-remote- desktop/-/merge_requests/249#top -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-remote-desktop in Ubuntu. https://bugs.launchpad.net/bugs/2072130 Title: RDP doesn't keep sessions alive in Ubuntu 24.04 after disconnecting Status in gnome-remote-desktop package in Ubuntu: Confirmed Bug description: each time i connect to Ubuntu 24.04 via remote desktop , i got a new fresh session , and rdp not picking and continuing from the previous run ProblemType: Bug DistroRelease: Ubuntu 24.04 Package: gnome-remote-desktop 46.2-1~ubuntu24.04.2 ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1 Uname: Linux 6.8.0-31-generic x86_64 NonfreeKernelModules: lkp_Ubuntu_6_8_0_31_31_generic_104 ApportVersion: 2.28.1-0ubuntu3 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Thu Jul 4 23:10:55 2024 InstallationDate: Installed on 2024-07-02 (2 days ago) InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424) ProcEnviron: LANG=en_US.UTF-8 PATH=(custom, no user) SHELL=/bin/bash TERM=xterm-256color XDG_RUNTIME_DIR=<set> SourcePackage: gnome-remote-desktop UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-remote-desktop/+bug/2072130/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp