electron

Exception could not locate binding file after updating electron version

半城伤御伤魂 提交于 2019-12-11 06:40:03
问题 I'm working on updating my project from using electron version 1.2.5 to the newest electron at this time which is 1.7.7 (atleast it was when I downloaded it). My node version 6.9.1. I've encountered a problem when I start my project with this new electron version, the error in general is about "could not locate the binding files. and it mostly regards the async module. There is also some part of the exception regarding node-etcd module which I use in my project (version 5.0.3) I found some

Electron - ipcRenderer not working in Async Class

六月ゝ 毕业季﹏ 提交于 2019-12-11 06:37:26
问题 i have a class with a Constructor and Async functions. I have done module.exports so that i could call my Class from my GUI.js file and in my GUI.js file, i have required that class, and everything works fine. But inside my class, im trying to do this ipcRenderer.send('message', 'Hello'); And im getting this error: TypeError: Cannot read property 'send' of undefined is it possible to remote the ipcRenderer in my GUI.js? Thanks. i have required the module in my main file, and in my renderer

Show dialog on top of all other windows

 ̄綄美尐妖づ 提交于 2019-12-11 06:29:49
问题 Is there a way to show the dialog from dialog.showMessageBox() on top of everything? For example, I'm woking on the notepad and given some event in my Electron application it will open a dialog that should now be the main window for the user to see. 回答1: It's kinda ugly but you can pass a dummy holder browserwindow which is always on top. dialog.showMessageBox( new BrowserWindow({ show: false, alwaysOnTop: true }), { type: 'question', message: 'is on top' } ) 来源: https://stackoverflow.com

webkitSpeechRecognition throws error “network”

血红的双手。 提交于 2019-12-11 06:21:48
问题 I have an speech recognition (using webkitSpeechRecognition) application which works great when ran on the standalone chrome browser. I converted my application into a electron package and it stops listening to the microphone and sends back an error with message "network". The documentation says "Network communication required for completing the recognition failed.". However it works good in chrome directly without any issues. I have also used "SpeechSynthesisUtterance" for text to speech and

How to use Selenium Web Driver to test apps developed using electron framework

大城市里の小女人 提交于 2019-12-11 06:13:31
问题 Please refer to these images to get an idea Command Prompt Test Case I am using Selenium web driver with C# for automation using VS2015. One of the apps which I have to test is developed using the electron framework. I have gone through the documentation in the Electron project but I am still struggling to understand how it works. I have written this code to open my electron application, it actually opens the electron window but fails to open the Index.html page in the electron shell.This is

Is it possible to use Electron in web application loaded from external web server?

半腔热情 提交于 2019-12-11 06:11:51
问题 I started to learn Electron and have one question: Is it possible to use Electron's code in a web application only in the case when application was loaded by Electron from local folder? win.loadURL('file://' + __dirname + '/app/index.html'); Is it not possible to use electron in web application's java script files if application was loaded to BrowserWindow from external web server? win.loadURL('http://localhost:9000'); 回答1: You can use webview to load external web content. It is similar to

Dropbox oauth view is not rendering properly

大城市里の小女人 提交于 2019-12-11 06:02:08
问题 I am building electron desktop app where user can grant access to his cloud drive using OAuth credentials. It used to work fine. Recently it is not rendering html properly. Eventhough user enters credentials, he is not able to submit form. It is throwing below errors. Please check the screenshot : Adding another screen how submit button is disabled and user name and password text boxes are behind the view. Electron process details : process.versions : ares: "1.10.1-DEV" atom-shell: "1.4.14"

Electron native addon failing on windows

两盒软妹~` 提交于 2019-12-11 05:37:02
问题 I have a native addon that uses openSSL library on a unpacked electron app. On a windows 10 it works and on a windows 7 it's not working , I am receiving this: Error: The specified module could not be found. \\?\C:\Program Files (x86)\AppX Player\resources\app\src\addon\foo.node at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:167:20) at Object.Module._extensions..node (module.js:568:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js

array.length is zero, but the array has elements in it [duplicate]

南笙酒味 提交于 2019-12-11 05:14:21
问题 This question already has answers here : Is Chrome's JavaScript console lazy about evaluating arrays? (6 answers) Closed last year . I'm currently in the process practicing using electron, but I'm quite new with javascript and I've come across a problem which has me completely baffled. I have the following code: function getPaths() { var dirPath = document.getElementById("mdir").innerHTML; var filePaths = []; fs.readdir(dirPath, function(err, dir) { for(var i = 0, l = dir.length; i < l; i++)

how to bundle git with an electron app

馋奶兔 提交于 2019-12-11 05:07:37
问题 I am developing an electron application for a client and they need an easy way to update the app as I work on it. I have found that the easiest way is to just include support for pulling from a git repo and this works fine in my tests and on the clients' machine. Recently, they tried to install the app on a new mac that does not have git installed. The client, who is not tech savvy, is having a lot of trouble installing git and it took me a while to walk them through downloading the installer