Electron locking when opening more than one application

Asked

Viewed 205 times

0

I’m going through a little problem :c

Whenever I open more than one Electron application and it starts loading a new main window for the user to start using the application, the entire operating system is extremely slow for a few seconds until the page is fully loaded.

This only happens when you open more than one Electron app. In my case, I’m using Windows 10.

Update of the question

Mysteriously other applications that run Electron like Discord don’t make this little problem happen.

This happens only between my Electron developed applications.

Update 2

Modules used in Preload:

const { remote, ipcRenderer, shell } = require('electron');
const Tray = remote.Tray;
const Menu = remote.Menu;
const app = remote.app;
const dialog = remote.dialog;

const download = require('./download');
const exec = require('child_process').execFile;
const empty = require('empty-folder');
const JSZip = require("jszip");
const path = require('path');
const fs = require('fs');
const osLocale = require('os-locale');
const ioHook = require('iohook');
const chokidar = require('chokidar');
const md5 = require('md5');
const md5File = require('md5-file');

const config = require('../../config.json');
const package = require('../../package.json');
const languagelist = require('../_locales/list.json');

const appUserModelId2 = remote.getGlobal("appUserModelId2");
const isAsar = remote.getGlobal("isAsar");
const tinyDir = remote.getGlobal("tinyDir");

2 answers

1


I figured out the problem myself. It was a conflict going on when the ioHook module was loaded by another application.

Still thanks for the one who tried to help me.

  • That’s a solution or you had to remove the iohook?

  • I still don’t know how to resolve this conflict because I didn’t find anything saying in relation to resolve it. : c It will be very difficult to find a replacement because I need a module that detects shortcut keys without needing to replace an existing one and runs on the computer globally. That’s exactly what I got with the iohook.

0

  • I’m sorry, but the answer doesn’t quite fit with what I really wanted to ask. I made an update on the question to improve the justification of the question.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.