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;