sharedProfilesSettingsFile function
Implementation
File sharedProfilesSettingsFile() {
final home = Platform.environment[Platform.isWindows ? "USERPROFILE" : "HOME"]?.trim();
if (home == null || home.isEmpty) {
throw StateError("Unable to locate the home directory for shared profile settings.");
}
final separator = Platform.pathSeparator;
return File("$home$separator.meshagent${separator}settings.json");
}