Switches the active network location to the one with the given name or UUID.
Pass the location's display name (e.g. "Home") or its UUID from configurationLocations().
The change is applied immediately. Returns false if the location was not found or
the preferences could not be committed (e.g. insufficient privileges).
Parameters
location: string
A location display name or UUID string.
Returns boolean
true if the location was changed successfully, false otherwise.
Switches the active network location to the one with the given name or UUID. Pass the location's display name (e.g.
"Home") or its UUID fromconfigurationLocations(). The change is applied immediately. Returnsfalseif the location was not found or the preferences could not be committed (e.g. insufficient privileges).