octalmage / robotjs

Node.js Desktop Automation.
http://robotjs.io
MIT License
12.37k stars 961 forks source link

This module is not context aware and requires allowRendererProcessReuse= false #580

Open saghul opened 4 years ago

saghul commented 4 years ago

Expected Behavior

There sshould be no need to set app.allowRendererProcessReuse=false. Note that as of Electron 9 the default flipped to true.

Current Behavior

One has to manually set allowRendererProcessReuse to false, and you get this warning:

[1] (node:82611) Electron: Loading non-context-aware native module in renderer: '/Users/saghul/work/jitsi/jitsi-meet-electron/node_modules/robotjs/build/Release/robotjs.node'. This is deprecated, see https://github.com/electron/electron/issues/18397.

Possible Solution

Looks like https://github.com/electron/electron/issues/18397 may have the answers.

Steps to Reproduce (for bugs)

1. 2. 3. 4.

Context

Your Environment

DanielMcAssey commented 4 years ago

Any update to this? As the option has been deprecated.

ivanjeremic commented 4 years ago

Man why nobody is answering this?

ianwieds commented 4 years ago

Also interested in having this fixed. What can we do to help?

ghost commented 4 years ago

I'm also having this issue now. Fixed it for now with app.allowRendererProcessReuse=false but in Electron 11 that won't be possible.

aabuhijleh commented 4 years ago

A possible workaround I'm using is to load this module in the main process and if I need to use it from the renderer process, I just use Electron's IPC calls.

srjlulla commented 3 years ago

Any update on this issue?

romain130492 commented 3 years ago

?....