Prevent accidental network disconnects when NAS is mounted
With some systems, the main file storage is on the network and is assumed to be always available. This often happens when the system is located in a data center (either as a VM or a physical machine). Often, the user's home directory is on one of these network attached storage devices.
In these cases, accidentally disconnecting from the network can have damaging consequences: work can be disrupted, and there can be issues if home disappears.
It would be good if we could avoid this from happening. Some potential options:
- If home is on the network, don't allow disconnecting from a wired connection
- If the system is a VM, show a confirmation dialog when someone tries to disconnect from a wired connection
- If network attached storage is mounted, show the same confirmation dialog
If we go with any of these options, we should also reproduce the same behaviour in gnome-control-center (see gnome-control-center#2461).