mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 19:31:46 +00:00
fix duplicate mpris session
This commit is contained in:
5
index.js
5
index.js
@ -40,6 +40,11 @@ if (config.get("options.disableHardwareAcceleration")) {
|
|||||||
app.disableHardwareAcceleration();
|
app.disableHardwareAcceleration();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is.linux() && config.plugins.isEnabled("shortcuts")) {
|
||||||
|
//stops chromium from launching it's own mpris service
|
||||||
|
app.commandLine.appendSwitch('disable-features', 'MediaSessionService');
|
||||||
|
}
|
||||||
|
|
||||||
if (config.get("options.proxy")) {
|
if (config.get("options.proxy")) {
|
||||||
app.commandLine.appendSwitch("proxy-server", config.get("options.proxy"));
|
app.commandLine.appendSwitch("proxy-server", config.get("options.proxy"));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user