Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add a workaround for the SUID sandbox helper error on Linux

Manav Rathid188abfe659a
diff --git a/desktop/src/main.ts b/desktop/src/main.ts
index 9cba9178df..7bfdb3311d 100644
--- a/desktop/src/main.ts
+++ b/desktop/src/main.ts
@@ -133,6 +133,15 @@ const registerPrivilegedSchemes = () => {
]);
};
+/**
+ * The Chromium sandbox causes the app to fail to run on various Linux
+ * distributions. Reproducible on Ubuntu 24.
+ *
+ * See: https://github.com/electron/electron/issues/17972
+ */
+const suidWorkaroundOnLinux = () =>
+ process.platform == "linux" && app.commandLine.appendSwitch("--no-sandbox");
+
/**
* Create an return the {@link BrowserWindow} that will form our app's UI.
*
@@ -356,6 +365,7 @@ const main = () => {
initLogging();
logStartupBanner();
+ suidWorkaroundOnLinux();
// The order of the next two calls is important
setupRendererServer();
registerPrivilegedSchemes();