Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2025-04-14 15:16:23 +01:00
parent 08bf85faed
commit d4d3b5ad07
No known key found for this signature in database
GPG Key ID: A2B008A5F49F5D0D
2 changed files with 5 additions and 25 deletions

View File

@ -51,11 +51,10 @@ test.describe("App launch", () => {
});
test.describe("safeStorage", () => {
test.use({
extraArgs: ['--password-store="basic"'],
});
test.skip(platform() === "darwin", "The macOS runner's keychain is not available");
if (process.env.GITHUB_ACTIONS) {
test.skip(platform() === "darwin", "The macOS runner's keychain is not available");
test.skip(platform() === "linux", "The Linux runner's dbus is not available");
}
const userId = "@user:server";
const deviceId = "ABCDEF";
@ -70,7 +69,7 @@ test.describe("App launch", () => {
});
test.describe("migrate from keytar", () => {
// test.skip(platform() === "win32", "Windows requires authentication to write to the store");
test.skip(!!process.env.GITHUB_ACTIONS, "Does not work in CI");
const pickleKey = "DEADBEEF1234";

View File

@ -366,25 +366,6 @@ 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
app.commandLine.appendSwitch("disable-features", "HardwareMediaKeyHandling,MediaSessionService");
const SUPPORTED_ELECTRON_SWITCHES: string[] = [];
if (process.platform === "linux") {
SUPPORTED_ELECTRON_SWITCHES.push("password-store");
if (process.env.CI) {
safeStorage.setUsePlainTextEncryption(true);
}
}
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.
if (global.store.get("disableHardwareAcceleration") === true) {
console.log("Disabling hardware acceleration.");