Skip to content

armgit / ente

Public Imported from GitHub
0

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

Add workaround

Manav Rathi54c69e7aa5fc
diff --git a/desktop/src/main.ts b/desktop/src/main.ts
index dd6cab4a18..687d8b11d6 100644
--- a/desktop/src/main.ts
+++ b/desktop/src/main.ts
@@ -78,6 +78,14 @@ export const allowWindowClose = (): void => {
* We call this at the end of this file.
*/
const main = () => {
+ // Workaround for Electron 36 not launching on some Linux distros. Remove
+ // once fixed or otherwise mitigated upstream.
+ //
+ // https://github.com/electron/electron/issues/46538#issuecomment-2808806722
+ if (process.platform == "linux") {
+ app.commandLine.appendSwitch("gtk-version", "3");
+ }
+
const gotTheLock = app.requestSingleInstanceLock();
if (!gotTheLock) {
app.quit();