** Changed in: gnome-remote-desktop (Ubuntu Jammy)
Status: Triaged => In Progress
** Description changed:
Impact
------
The gnome-remote-desktop systemd user service is always running.
This was a contributing factor for LP: #1971415
Although it's "harmless" for the user service to be running if remote
desktop sharing is not enabled, it's a waste of resources to run a
service if it's not needed.
Test Case
---------
Install all Ubuntu updates and the gnome-remote-desktop update.
From a clean install (or new user), run this command:
systemctl --user status gnome-remote-desktop.service
It should show the service as "Active: inactive"
Open the Settings app to the Sharing page. Turn on Sharing and turn on
Remote Desktop. Use the systemctl command to verify that the service is
"Active: active (running). Log out and log back in and reverify.
Now turn off Remote Desktop Sharing and verify that the service is
inactive. Log out and log back in and reverify.
More details
-------------------
- This fix uses a dpkg maintscript to remove
/etc/systemd/user/gnome-session.target.wants/gnome-remote-desktop.service .
(That file is a symlink to the actual service).
+ This fix uses a dpkg postinst script to remove
/etc/systemd/user/gnome-session.target.wants/gnome-remote-desktop.service .
(That file is a symlink to the actual service). We couldn't use
https://manpages.debian.org/unstable/dpkg-maintscript-helper because the file
is technically not a "conffile" as recognized by dpkg.
It also modifies debian/rules so that that file is no longer
automatically added.
Instead of /etc/systemd/user/ , the user service is intended to be
enabled with the symlink ~/.config/systemd/user/gnome-
session.target.wants/gnome-remote-desktop.service . That is appropriate
since the GNOME implementation is per-user, not system-wide and it is
also disabled by default.
Fixing this bug has been strongly urged by the GNOME Remote Desktop
maintainers, and this brings us in line with how non-Debian distros have
been packaging gnome-remote-desktop.
What could go wrong
-------------------
The RDP and VNC sharing services in GNOME could start when they shouldn't or
not start when they should.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1973028
Title:
gnome-remote-desktop user service is always running
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-remote-desktop/+bug/1973028/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs