mirror of
https://github.com/element-hq/element-desktop
synced 2025-04-21 09:03:56 +02:00
Iterate
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
a88f695390
commit
516c436d51
@ -51,7 +51,10 @@ test.describe("App launch", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test.describe("safeStorage", () => {
|
test.describe("safeStorage", () => {
|
||||||
test.skip(platform() === "linux", "The linux runner has no compatible wallet/keychain");
|
test.use({
|
||||||
|
extraArgs: ['--password-store="basic"'],
|
||||||
|
});
|
||||||
|
|
||||||
test.skip(platform() === "darwin", "The macOS runner's keychain is not available");
|
test.skip(platform() === "darwin", "The macOS runner's keychain is not available");
|
||||||
|
|
||||||
const userId = "@user:server";
|
const userId = "@user:server";
|
||||||
@ -67,6 +70,8 @@ test.describe("App launch", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test.describe("migrate from keytar", () => {
|
test.describe("migrate from keytar", () => {
|
||||||
|
test.skip(platform() === "win32", "Windows requires authentication to write to the store");
|
||||||
|
|
||||||
const pickleKey = "DEADBEEF1234";
|
const pickleKey = "DEADBEEF1234";
|
||||||
|
|
||||||
test.beforeEach(async () => {
|
test.beforeEach(async () => {
|
||||||
|
@ -355,6 +355,22 @@ app.enableSandbox();
|
|||||||
// We disable media controls here. We do this because calls use audio and video elements and they sometimes capture the media keys. See https://github.com/vector-im/element-web/issues/15704
|
// We disable media controls here. We do this because calls use audio and video elements and they sometimes capture the media keys. See https://github.com/vector-im/element-web/issues/15704
|
||||||
app.commandLine.appendSwitch("disable-features", "HardwareMediaKeyHandling,MediaSessionService");
|
app.commandLine.appendSwitch("disable-features", "HardwareMediaKeyHandling,MediaSessionService");
|
||||||
|
|
||||||
|
const SUPPORTED_ELECTRON_SWITCHES: string[] = [];
|
||||||
|
|
||||||
|
if (process.platform === "linux") {
|
||||||
|
SUPPORTED_ELECTRON_SWITCHES.push("password-store");
|
||||||
|
}
|
||||||
|
for (const switchKey of SUPPORTED_ELECTRON_SWITCHES) {
|
||||||
|
if (switchKey in argv) {
|
||||||
|
const switchValue = argv[switchKey];
|
||||||
|
if (switchValue === true) {
|
||||||
|
app.commandLine.appendSwitch(switchKey);
|
||||||
|
} else {
|
||||||
|
app.commandLine.appendSwitch(switchKey, switchValue);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Disable hardware acceleration if the setting has been set.
|
// Disable hardware acceleration if the setting has been set.
|
||||||
if (global.store.get("disableHardwareAcceleration") === true) {
|
if (global.store.get("disableHardwareAcceleration") === true) {
|
||||||
console.log("Disabling hardware acceleration.");
|
console.log("Disabling hardware acceleration.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user