add ozone-platform-hint=auto to known flags

This allows electron to run natively under wayland
This commit is contained in:
Nikolai Vincent Vaags
2025-07-09 11:22:14 +02:00
parent df533fb1bf
commit 588780d632

View File

@@ -99,7 +99,7 @@ function getDefaultReticulumConfigDir() {
app.whenReady().then(async () => {
// get arguments passed to application, and remove the provided application path
const ignoredArguments = ["--no-sandbox"];
const ignoredArguments = ["--no-sandbox", "--ozone-platform-hint=auto"];
const userProvidedArguments = process.argv.slice(1).filter((arg) => !ignoredArguments.includes(arg));
const shouldLaunchHeadless = userProvidedArguments.includes("--headless");