Skip to content

TagSpaces is an offline, open source, document manager with tagging support

removing the disabled gpu on linux, increasing the heap size for electron/node

Ilian Sapundshiev046853621f15
diff --git a/app/main.dev.js b/app/main.dev.js
index 0b763e821..b2f57171b 100644
--- a/app/main.dev.js
+++ b/app/main.dev.js
@@ -62,9 +62,11 @@ if (process.env.NODE_ENV === 'development' || process.env.DEBUG_PROD === 'true')
require('module').globalPaths.push(p);
}
-if (process.platform === 'linux') {
- app.commandLine.appendSwitch('disable-gpu'); // Fix the freezing the app with a black box on dnd https://github.com/electron/electron/issues/12820
-}
+// if (process.platform === 'linux') {
+// app.commandLine.appendSwitch('disable-gpu'); // Fix the freezing the app with a black box on dnd https://github.com/electron/electron/issues/12820
+// }
+
+app.commandLine.appendSwitch('js-flags', '--max-old-space-size=4096');
const installExtensions = async () => {
const { default: installExtension, REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS } = require('electron-devtools-installer');