screensharing cannot be enabled when using systemd-networkd
It's impossible to enable screen sharing when systemd-networkd is used (instead of NetworkManager). The following message is logged in journalctl when trying to enable screen sharing in the settings:
Failed to enable service vino-server: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Sharing cannot be enabled on this network, status is '0'
Even though the connection is up and configured:
$ networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 enp1s0 ether routable configured
Edited by Bastien Nocera