mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-17 13:12:07 +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 is from 'electron-is';
|
||||||
import { register as registerElectronLocalShortcut } from 'electron-localshortcut';
|
import { register as registerElectronLocalShortcut } from 'electron-localshortcut';
|
||||||
|
|
||||||
@ -48,9 +48,7 @@ export const onMainLoad = async ({
|
|||||||
_registerLocalShortcut(window, 'CommandOrControl+L', search);
|
_registerLocalShortcut(window, 'CommandOrControl+L', search);
|
||||||
|
|
||||||
if (is.linux()) {
|
if (is.linux()) {
|
||||||
ipcMain.once('ytmd:video-src-changed', (_) => {
|
registerMPRIS(window);
|
||||||
registerMPRIS(window);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const { global, local } = config;
|
const { global, local } = config;
|
||||||
|
|||||||
Reference in New Issue
Block a user