# Sharing disabling upon logout

**URL:** <https://discourse.ubuntubudgie.org/t/sharing-disabling-upon-logout/6415>\
**Category:** Budgie Desktop\
**Created:** [November 27, 2022, 10:19pm UTC](https://discourse.ubuntubudgie.org/t/sharing-disabling-upon-logout/6415 "2022-11-27T22:19:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![portlygoat1](https://avatars.discourse-cdn.com/v4/letter/p/e495f1/32.png) [@portlygoat1](https://discourse.ubuntubudgie.org/u/portlygoat1)\
**Post date:** [November 27, 2022, 10:19pm UTC](https://discourse.ubuntubudgie.org/t/sharing-disabling-upon-logout/6415/1 "2022-11-27T22:19:03Z")

</div>

I am trying to enable RDP so I can access my computer remotely but after enabling it in Sharing in the Control Centre and setting it up how I want it the Sharing switches off every time I log out making it impossible to actually use. I’ve tried creating a new user and the same issue happens. If I try to RDP whilst the machine is logged in and it’s enabled the session just disconnects and if I log out RDP switches off again so I’m stuck here. I have a Raspberry Pi with Ubuntu Budgie installed and RDP works fine with that as long as I log out before trying to connect to it so I’m not sure what the difference is.

---

<div class="post-metadata">

**Author:** ![samlane](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/samlane/32/3046_2.png) [@samlane](https://discourse.ubuntubudgie.org/u/samlane)\
**Post date:** [November 28, 2022, 1:31am UTC](https://discourse.ubuntubudgie.org/t/sharing-disabling-upon-logout/6415/2 "2022-11-28T01:31:29Z")

</div>

There does appear to be an issue with enabling RDP being persistent after logout / reboot. As a workaround, you can try this:

Copy the systemd service to your user directory:  
`cp /usr/lib/systemd/user/gnome-remote-desktop.service ~/.config/systemd/user/`

Edit the service file: `~/.config/systemd/user/gnome-remote-desktop.service`

In the [Service] section, there should be the line `Restart=always`  
In the [Install] section, the line should be changed to `WantedBy=default.target`

The file should look something like this:

> [Unit]  
> Description=GNOME Remote Desktop
> 
> [Service]  
> Type=dbus  
> BusName=org.gnome.RemoteDesktop  
> ExecStart=/usr/libexec/gnome-remote-desktop-daemon  
> Restart=always
> 
> [Install]  
> WantedBy=default.target

Hopefully, after you make these changes, it should remember the settings after logging out or rebooting.

Unfortunately, the way RDP works through Budgie Sharing, you still have to be logged in before it will accept a connection, so you might have to enable autologin to work around this as well.

---

<div class="post-metadata">

**Author:** ![samlane](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.ubuntubudgie.org/samlane/32/3046_2.png) [@samlane](https://discourse.ubuntubudgie.org/u/samlane)\
**Post date:** [November 28, 2022, 2:25pm UTC](https://discourse.ubuntubudgie.org/t/sharing-disabling-upon-logout/6415/3 "2022-11-28T14:25:07Z")

</div>

I should also mention, as I noticed you said that RDP on Pi works different than on your other machine… If you did enable RDP on the Pi using the Pi configuration app instead of through Control Center, they use different methods for RDP (xrdp vs gnome-remote-desktop). We do have a script which can enable the same xrdp method we use on the Pi.
