From 7599cc694a525a24b83786b4b06a6c60c6770eed Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sun, 4 Aug 2024 15:26:14 +0900 Subject: [PATCH] Revert "fix(MPRIS): Prevents player to start with invalid MPRIS interface (#1996)" This reverts commit eaf9d310aa123ac1ee65ed50e8e548b0a259c166. Fix #2225 --- src/plugins/shortcuts/main.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plugins/shortcuts/main.ts b/src/plugins/shortcuts/main.ts index 84c2989908..89ce111e4e 100644 --- a/src/plugins/shortcuts/main.ts +++ b/src/plugins/shortcuts/main.ts @@ -1,4 +1,4 @@ -import { BrowserWindow, ipcMain, globalShortcut } from 'electron'; +import { BrowserWindow, globalShortcut } from 'electron'; import is from 'electron-is'; import { register as registerElectronLocalShortcut } from 'electron-localshortcut'; @@ -48,9 +48,7 @@ export const onMainLoad = async ({ _registerLocalShortcut(window, 'CommandOrControl+L', search); if (is.linux()) { - ipcMain.once('ytmd:video-src-changed', (_) => { - registerMPRIS(window); - }); + registerMPRIS(window); } const { global, local } = config;