electron

Angular Electron, white screen after reload page

时间秒杀一切 提交于 2021-02-07 09:14:21
问题 When I first run my application electron with angular 4, it works normally like this but once I reload the page all becomes white When I check the DOM, everything appears normal, but the screen is still white. like this What causes the problem, how do I fix it ? 回答1: I know this is pretty old... but this is the most direct question I could find. I was running thru the same issue; every change to my angular application required me to rebuild the entire electron app, and if I refreshed the

Run a non electron executable inside electron window

喜欢而已 提交于 2021-02-07 07:37:32
问题 I'm new to Electron and I'd like to run a non electron executable inside my main window. Is it possible to do that? Here is my code: mainWindow = new BrowserWindow({width: 860, height: 645}) mainWindow.loadURL('https://url.com/') const { execFile } = require('child_process'); const child = execFile('C:\\test\\content.exe', {cwd: 'C:\\test\\'}, (error, stdout, stderr) => { if (error) { throw error; } console.log(stdout); }); Thanks. 回答1: I think you're on the right track except you need to do:

Electron OpenGL for MacOs Catalina

假如想象 提交于 2021-02-07 05:33:43
问题 I am building an electron application, however i have an error which makes rendering painfully slow and causing high cpu usage [1] Unable to create basic Accelerated OpenGL renderer. [1] Unable to create basic Accelerated OpenGL renderer. [1] Core Image is now using the software OpenGL renderer. This will be slow. i try to find out however i couldn't find a answer about the problem. Anyone have any idea about this problem ? 回答1: Apple deprecated OpenGL in favor of Metal. https://www.macrumors

Electron OpenGL for MacOs Catalina

拜拜、爱过 提交于 2021-02-07 05:31:19
问题 I am building an electron application, however i have an error which makes rendering painfully slow and causing high cpu usage [1] Unable to create basic Accelerated OpenGL renderer. [1] Unable to create basic Accelerated OpenGL renderer. [1] Core Image is now using the software OpenGL renderer. This will be slow. i try to find out however i couldn't find a answer about the problem. Anyone have any idea about this problem ? 回答1: Apple deprecated OpenGL in favor of Metal. https://www.macrumors

Manipulate DOM in Electron

﹥>﹥吖頭↗ 提交于 2021-02-06 14:00:22
问题 What is the best way to manipulate DOM within an electron app? I made some tutorials from docs using ipc and webcontents with no luck My app is so simple, I just want to use the web like a console and showing messages (render proc) comming from the results of several sync functions (main proc) I updated the question with real code. I'm going to put another code, more simple to see and more simple to test (I think), is real code and works (but not like I want) When I launch electron only

Manipulate DOM in Electron

﹥>﹥吖頭↗ 提交于 2021-02-06 13:59:45
问题 What is the best way to manipulate DOM within an electron app? I made some tutorials from docs using ipc and webcontents with no luck My app is so simple, I just want to use the web like a console and showing messages (render proc) comming from the results of several sync functions (main proc) I updated the question with real code. I'm going to put another code, more simple to see and more simple to test (I think), is real code and works (but not like I want) When I launch electron only

How to select file OR folder in file dialog

别等时光非礼了梦想. 提交于 2021-02-06 09:14:03
问题 How would someone open up a file dialog in Node.js / electron to be able to select either a folder or a file. When I use <input type="file"/> it will open up the file dialog but won't allow me to select a folder. But when I try <input type="file" webkitdirectory/> it will open up the dialog, but won't allow for folder selection. What I want to do is just have one input button, or doesn't really have to be a button, but a way to launch the native system file explorer for both possibilities.

How to select file OR folder in file dialog

孤人 提交于 2021-02-06 09:12:59
问题 How would someone open up a file dialog in Node.js / electron to be able to select either a folder or a file. When I use <input type="file"/> it will open up the file dialog but won't allow me to select a folder. But when I try <input type="file" webkitdirectory/> it will open up the dialog, but won't allow for folder selection. What I want to do is just have one input button, or doesn't really have to be a button, but a way to launch the native system file explorer for both possibilities.

How to select file OR folder in file dialog

半腔热情 提交于 2021-02-06 09:12:49
问题 How would someone open up a file dialog in Node.js / electron to be able to select either a folder or a file. When I use <input type="file"/> it will open up the file dialog but won't allow me to select a folder. But when I try <input type="file" webkitdirectory/> it will open up the dialog, but won't allow for folder selection. What I want to do is just have one input button, or doesn't really have to be a button, but a way to launch the native system file explorer for both possibilities.

How to select file OR folder in file dialog

纵然是瞬间 提交于 2021-02-06 09:12:34
问题 How would someone open up a file dialog in Node.js / electron to be able to select either a folder or a file. When I use <input type="file"/> it will open up the file dialog but won't allow me to select a folder. But when I try <input type="file" webkitdirectory/> it will open up the dialog, but won't allow for folder selection. What I want to do is just have one input button, or doesn't really have to be a button, but a way to launch the native system file explorer for both possibilities.