openLocationSettings method
Implementation
@override
Future<bool> openLocationSettings() async {
final attempts = <List<String>>[
['gnome-control-center', 'privacy', 'location'],
['systemsettings5', 'kcm_location'],
['xdg-open', 'settings://privacy/location'],
];
for (final args in attempts) {
try {
final r = await Process.run(args.first, args.sublist(1));
if (r.exitCode == 0) return true;
} catch (_) {
// Try next.
}
}
return false;
}