Skip to content

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

disabling gpu accel. on linux for fixing dnd issues

Ilian Sapundshiev5beba560574e
diff --git a/app/main.dev.js b/app/main.dev.js
index 9569c54c2..fab0a3cc7 100644
--- a/app/main.dev.js
+++ b/app/main.dev.js
@@ -60,6 +60,9 @@ if (process.env.NODE_ENV === 'development' || process.env.DEBUG_PROD === 'true')
require('electron-debug')({ showDevTools: false, devToolsMode: 'right' });
const p = path.join(__dirname, '..', 'app', 'node_modules');
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
}