Add the ability to pass to electron --disable-features values
Right now, HardwareMediaKeyHandling is the only disabled value and all other disabled values are ignored. This flag is needed when using Wayland due to the bug: https://bugs.chromium.org/p/chromium/issues/detail?id=1356014 In order to have a non blurry app, WaylandFractionalScaleV1 has to be added to the disabled features
This commit is contained in:
parent
504133592c
commit
43de1dc2bd
1 changed files with 4 additions and 1 deletions
|
@ -1738,7 +1738,10 @@ async function getDefaultLoginItemSettings(): Promise<LoginItemSettingsOptions>
|
|||
|
||||
// Signal doesn't really use media keys so we set this switch here to unblock
|
||||
// them so that other apps can use them if they need to.
|
||||
app.commandLine.appendSwitch('disable-features', 'HardwareMediaKeyHandling');
|
||||
const featuresToDisable =
|
||||
`HardwareMediaKeyHandling,${app.commandLine.getSwitchValue('disable-features')}`;
|
||||
app.commandLine.appendSwitch('disable-features', featuresToDisable);
|
||||
|
||||
|
||||
// If we don't set this, Desktop will ask for access to keychain/keyring on startup
|
||||
app.commandLine.appendSwitch('password-store', 'basic');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue