Disabling GPU acceleration by setting env variable (#1870)

* Disabling GPU by setting env variable

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Moving fuzzy bug description into docs FAQ

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>

* Fix lint error

Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
Alex Andreev authored and GitHub committed 2020-12-29 17:11:18 +02:00
1 parent 2b78794000
commit 819811e3e6
2 files changed
+25 -1

No files matched your search

+4
View File
@@ -55,6 +55,10 @@ app.on("second-instance", () => {
windowManager?.ensureMainWindow();
});
if (process.env.LENS_DISABLE_GPU) {
app.disableHardwareAcceleration();
}
app.on("ready", async () => {
logger.info(`🚀 Starting Lens from "${workingDir}"`);
await shellSync();