fix(electron): make macos player executable mapping explicit

This commit is contained in:
4gray committed 2026-05-10 22:40:34 +02:00
1 parent d6d9f42a7e
commit 8b46bfab87
1 file changed
+6 -1
@@ -93,8 +93,13 @@ function normalizePlayerPathForStore(value: string | null | undefined): string {
return normalizeCustomPlayerPath(value) ?? '';
}
const macOSAppBundleExecutableNames: Record<ExternalPlayerName, string> = {
mpv: 'mpv',
vlc: 'VLC',
};
function getMacOSAppBundleExecutableName(player: ExternalPlayerName): string {
return player === 'mpv' ? 'mpv' : 'VLC';
return macOSAppBundleExecutableNames[player];
}
function removeTrailingPathSeparators(value: string): string {