Category "electron"

Pass values to callback functions of action buttons in notification in node/electron application? Also callback functions not working after timeout

In a node/electron application, used node-notifier to show notification, working great. Then, added buttons 'ok' and 'cancel', and their respective callback fun

Exec, ExecSync, Spawn, SpawnSync fails in production on multiple MAC machines

Solved -- Official Electron bug solved in 17.0.2 I'm trying to write a cross-platform app that utilizes child processes to execute commands. I ran into a proble

Bash Scripts Are Not Executing From Production Build of Electron App

UPDATE: index.js file content added. I have this electron app that is executing some bash scrips(*.sh) files to perform some task. Everything is working absolut

Electron.js I can't do the Button action

follow my source code, does anyone know more about Electron around here? I'm starting to study now and I'm trying to create an App that will update some files t

Electron shows blank window

My HTML file isn't loading at the tutorial says it would've. This is what I have. Yes, I've tried doing all sorts of funky stuff involving paths and it doesn't

How to capture the window close event on Electron's renderer process?

On a classic front-end JavaScript, capturing the "window close" event can be done in a multiple ways. It can be done with: // Method A: `close` event via an eve

How to disable and re-enable menu bar

I would like to disable the menu bar (make it grey and unopenable). How to do that? I tried the following code but it removes the menu bar instead of disabling

Electron Web Bluetooth Device selection returning only 1 device

have found that in my electron application the following code from the main.js only returns a device list of length 1 (filled with one device) even though there

Having trouble adding a callback function from the main.js to the renderer.js after button click in another window

Hi at the moment i have used the ipcRenderer in one of my JS files to execute a function in the main.js. This code executes without a problem. What I'm trying t

On Mac OS after closing the window, it does not reopen from the dock

I have developed an electron application, and after creating its build, installed it in MacBook for testing firstly the app worked fine, but after closing the a

Electron hidden worker window is not working properly

i want to create a hidden window so that access it's indexeddb and perform other background operations this is my worker.html <!DOCTYPE html> <ht

Trying to use Electron Forge to build app for Raspberry Pi Zero

I'm developing a small, simple app on a Mac based device and have installed the Electron Forge CLI, I'm running the make command and then the package command wh

How to Close, Minimize and Maximize window in Javascript

I want to Close, Minimize and Maximize my electron application from Javascript. I tried it with this code. It worked for maximize and close but sometimes it's n

Electron - Uncaught TypeError: Cannot read properties of undefined (reading 'showOpenDialog')

I'm trying to open the dialog on electron, but I'm getting this error: Uncaught TypeError: Cannot read properties of undefined (reading 'showOpenDialog') I've

Electron with React- trying to import ipcRenderer - preload.js is not being called

I'm trying to send data fron the page to electron using ipc When I run the elctron app, the window.ipcRenderer is just undifined(inside the electron app) this i

Can't resolve 'fs' in \node_modules\electron

I am using the electron-react boilerplate and want to use an electron dialog in App.tsx: const { dialog } = require('@electron/remote') //also tried with import

("Document not defined" in renderer.js) - Sending data and rendering it in electron

I am trying to create a Debug app for Body Positioning Data. This data is received as JSON via MQTT in my receiveAndConversion.js. I was able to receive the dat

electron-forge with two windows : how to render the second window? electron-react app

I realized that the second electron browser window, does actually opens, but it doesn't render correctly. In /tools/forge/forge.config.js I have two entryPoints

Is it possible by clicking on Electron's MenuItem of type checkbox not to close the current submenu?

I have in my Electron app the submenu with a couple of MenuItems of type 'checkbox': { label: 'Search settings', submenu: [ {

How to solve this error Module not found: Error: Can't resolve 'fs'

I have created new angular project with electron.I do need to set up the electron. I have got below errors. ERROR in ./node_modules/electron/index.js Module