mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 05:36:00 +02:00
+8
-1
@@ -548,7 +548,14 @@ async function createWindow(first = true): Promise<void> {
|
||||
}
|
||||
}
|
||||
|
||||
app.commandLine.appendSwitch('disable-features', 'HardwareMediaKeyHandling,MediaSessionService');
|
||||
const enableWindowsMediaSession = store.get('mediaSession', false) as boolean;
|
||||
const shouldDisableMediaFeatures = process.platform !== 'win32' || !enableWindowsMediaSession;
|
||||
if (shouldDisableMediaFeatures) {
|
||||
app.commandLine.appendSwitch(
|
||||
'disable-features',
|
||||
'HardwareMediaKeyHandling,MediaSessionService',
|
||||
);
|
||||
}
|
||||
|
||||
// https://github.com/electron/electron/issues/46538#issuecomment-2808806722
|
||||
app.commandLine.appendSwitch('gtk-version', '3');
|
||||
|
||||
Reference in New Issue
Block a user