Skip to content

Commit

Permalink
Revert "fix(MPRIS): Prevents player to start with invalid MPRIS inter…
Browse files Browse the repository at this point in the history
…face (#1996)"

This reverts commit eaf9d31.

Fix #2225
  • Loading branch information
JellyBrick committed Aug 4, 2024
1 parent 5359565 commit 7599cc6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/plugins/shortcuts/main.ts
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 7599cc6

Please sign in to comment.