From c2cc3cf7a0c6bea60eaf41a49044bc558448fd2c Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Thu, 13 Jan 2022 14:46:41 +0200 Subject: [PATCH] fix duplicate mpris session --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 6bf40ec1..07801d58 100644 --- a/index.js +++ b/index.js @@ -40,6 +40,11 @@ if (config.get("options.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")) { app.commandLine.appendSwitch("proxy-server", config.get("options.proxy")); }