fix: raise ios deployment target for media plugins

This commit is contained in:
ngfchl
2026-07-18 14:25:35 +08:00
parent 1b8911e4b6
commit 41eba19c7b
5 changed files with 245 additions and 7 deletions
+6 -2
View File
@@ -680,8 +680,12 @@ class FileNotifier extends StateNotifier<FileState> {
final installed = <ExternalPlayer>[];
for (final player in supportedExternalPlayers) {
try {
final result = await Process.run('/usr/bin/open', ['-Ra', player.name]);
if (result.exitCode == 0) installed.add(player);
final result = await Process.run('/usr/bin/mdfind', [
"kMDItemCFBundleIdentifier == '${player.bundleID}'",
]);
if (result.exitCode == 0 && result.stdout.toString().trim().isNotEmpty) {
installed.add(player);
}
} catch (_) {
// A missing application is expected and should not affect playback.
}