ensurePlayerctlInstalled method

Future<void> ensurePlayerctlInstalled()

Validates that playerctl is installed, throws exception if not

Implementation

Future<void> ensurePlayerctlInstalled() async {
  final isInstalled = await isPlayerctlInstalled();
  if (!isInstalled) {
    throw PlayerctlNotInstalledException(
      'playerctl is not installed. Please install it using your package manager.',
    );
  }
}