isPlayerctlInstalled method

  1. @override
Future<bool> isPlayerctlInstalled()
override

Implementation

@override
Future<bool> isPlayerctlInstalled() async {
  try {
    final result = await Process.run('which', ['playerctl']);
    return result.exitCode == 0;
  } catch (e) {
    debugPrint('Error checking playerctl installation: $e');
    return false;
  }
}