Remote Desktop is disabled after each logout and login
Detailed description of the issue. Put as much information as you can, potentially with images showing the issue.
Steps to reproduce:
- Open GNOME Settings
- Open the Sharing panel, enable it using the toggle switch in the title bar if it's not already on.
- Click Remote Desktop and enable it in the pop-up window using the first toggle switch there. (attached screenshot)
- Now this computer can be connected to from a RDP client.
- Log out (e.g. from the top-right menu in GNOME Shell) and log in again.
- Open GNOME Settings - Sharing panel
- Find that Remote Desktop is Off, and the computer cannot be connected to from a RDP client.
Expected behavior:
After enabling Remote Desktop in GNOME Settings, it should persist after logout and login, so the system is accessible via Remote Desktop without having to enable it from GNOME Settings after each login.
This was the behavior in GNOME 41 so it seems to be a regression.
If I try to manually enable it with systemd:
$ systemctl --user enable gnome-remote-desktop
The unit files have no installation config (WantedBy=, RequiredBy=, Also=,
Alias= settings in the [Install] section, and DefaultInstance= for template
units). This means they are not meant to be enabled using systemctl.
Possible reasons for having this kind of units are:
• A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
• A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
• A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
• In case of template units, the unit is meant to be enabled with some
instance name specified.
But this is the same for GNOME 41. So GNOME 41 might have another mechanism to preserve this setting.
Affected system and package version:
- Fedora 36
- gnome-control-center-42.0-3.fc36.x86_64
- gnome-remote-desktop-42.0-1.fc36.x86_64