mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 18:41:47 +00:00
Revert "fix(MPRIS): Prevents player to start with invalid MPRIS interface (#1996)"
This reverts commit eaf9d310aa.
Fix #2225
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user