cannot disable Remote Desktop in Ubuntu 22.04

Bug #1970039 reported by Marcin
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
New
Undecided
Unassigned
gnome-remote-desktop (Ubuntu)
Incomplete
Low
Unassigned

Bug Description

1. Go to Settings
2. sharing
3. Disable Remote Desktop and Sharing
4. Restart PC

problem: Remote Desktop is enabled. seems to be connected with RDP

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1970039/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
Marcin (marcinw2) wrote : Re: [Bug 1970039] Re: cannot disable Remote Desktop in Ubuntu 22.04

Dear Bot, it's unknown, which package it is related to. Looking for service
or package was first thing I have done.
Regards
Marcin

On Sat, 23 Apr 2022, 18:25 Ubuntu Foundations Team Bug Bot, <
<email address hidden>> wrote:

> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. It seems that your bug report is not filed about a
> specific source package though, rather it is just filed against Ubuntu
> in general. It is important that bug reports be filed about source
> packages so that people interested in the package can find the bugs
> about it. You can find some hints about determining what package your
> bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage.
> You might also ask for help in the #ubuntu-bugs irc channel on
> Libera.chat.
>
> To change the source package that this bug is filed about visit
> https://bugs.launchpad.net/ubuntu/+bug/1970039/+editstatus and add the
> package name in the text box next to the word Package.
>
> [This is an automated message. I apologize if it reached you
> inappropriately; please just reply to this message indicating so.]
>
> ** Tags added: bot-comment
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1970039
>
> Title:
> cannot disable Remote Desktop in Ubuntu 22.04
>
> Status in Ubuntu:
> New
>
> Bug description:
> 1. Go to Settings
> 2. sharing
> 3. Disable Remote Desktop and Sharing
> 4. Restart PC
>
> problem: Remote Desktop is enabled. seems to be connected with RDP
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+bug/1970039/+subscriptions
>
>

Tom Reynolds (tomreyn)
affects: ubuntu → gnome-remote-desktop (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-remote-desktop (Ubuntu):
status: New → Confirmed
Revision history for this message
rewks (rewks) wrote :

I noticed this too, somewhat annoying when trying to minimise listening services. Marcin, I have managed to work around this issue with the following command:

sudo unlink /etc/systemd/user/gnome-session.target.wants/gnome-remote-desktop.service

Now when enabling/disabling the remote desktop service a symlink is instead created/removed at

~/.config/systemd/user/gnome-session.target.wants/gnome-remote-desktop.service

and as such the user's on/off preference is respected.

Revision history for this message
Samuel Sherman (nuttergabario) wrote :

I uninstalled gnome-remote-desktop and it seems to be disabled, but I haven't actually checked the network connections.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for the bug report, is that the same as bug #1969619?

Changed in gnome-remote-desktop (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Pascal Nowack (pnowack) wrote :

Yeah, this issue here is a duplicate of the bug mentioned in comment 6. Jeremy submitted a patch, which sufficiently fixed the issue in https://gitlab.gnome.org/GNOME/gnome-control-center/-/merge_requests/1286 (it should technically check for other aspects too), but for now it is sufficient.
Follow-ups should use an upstream report or MR for this.

Just to note: What people confuses here is the state of what the switch represents and therefore leads to the wrong conclusions above.
Just because g-r-d is running, does not mean it listens on some ports for connections, nor that it starts any of the server backends (RDP or VNC).
Before Jeremys change, the state in g-c-c represented, whether the g-r-d service is enabled and running. However, the backends have their own 'enabled' settings (default: false ('off')). Also, the RDP backend won't be started by g-r-d, when the server cert and private keyfile are missing.
These are generated, when the switch in g-c-c is switched to 'on'.

The reason, why this issue was not apparent initially was that due a recent systemd change, g-r-d did not start automatically, when the service was enabled.
This was fixed in https://gitlab.gnome.org/GNOME/gnome-remote-desktop/-/commit/7f4ef31fd380dffc108e5c7f77c81fbaa271ec7b, but lead to this issue here.

tags: added: rls-ff-incoming
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.