15,274 questions
Score of 0
0 answers
49 views
How to implement an mTLS client within an Electron app?
I am working on an Electron app that interacts with its backend via an API secured with mTLS.
But at our project we don't have a CA. A privkey/certificate pair was generated once and now every client ...
Advice
0
votes
0
replies
76
views
Whatsapp Automation on React + Electron Application
I need a quick suggestion from you guys, I am currently working on a react + electron desktop application. In that i need to automate messages from that app to whatsapp. Is there any suggestions.
I ...
Score of -1
0 answers
85 views
Electron.js + React + Go (Fiber) build issue: React UI blank screen when backend is bundled, but works when running backend separately
I am building a desktop application using Electron.js with a React frontend and a Go (Fiber) backend.
During development (npm run dev), everything works perfectly. However, I am facing an issue when ...
Best practices
1
vote
1
replies
86
views
Safe unified channel messaging in Electron
Most examples for how to write the contextBridge.exposeInMainWorld message handling in Electron's preload.js script list one specific function name for each message, e.g. openFile. I find it more ...
Score of -3
1 answer
94 views
Checking menu items fails in Electron [closed]
The code example below for a main.js Electron file successfully changes the item label of the one item in menu Menu upon item click, but not its checked status when run in Electron Fiddle. As can be ...
Score of 0
0 answers
390 views
How do I fix the enoent error when I start Electron in my VS Code terminal?
I have a problem with Electron start in my VS Code. By following installation guide I install the electron but have a problem with first start. When I trying to run npm run dev:electron I've got that ...
Score of 0
0 answers
99 views
Desktop application installer closing silently
I use electron to convert my python-flask web application into a Desktop application. As installer, I use NSIS electron builder with a custom nsis script for the customer details page.
The issue is ...
Score of 1
1 answer
72 views
Electron IPC response is undefined
I'm new to Electron, I'm learning how IPC works. Let me show you my code:
preload.js
import { contextBridge, ipcRenderer } from 'electron'
contextBridge.exposeInMainWorld('myApi', {
performAction(...
Advice
0
votes
1
replies
69
views
Merging and detaching tabs in Electron.js app
When I working on a project that requires multiple windows, I use the BrowserWindow() method of Electron for doing this.
My code of making the windows:
const { app, BrowserWindow, screen, ipcMain} = ...
Score of 2
0 answers
89 views
Electron Builder packaged app throws Cannot find module '.prisma/client/default' (Prisma + Electron + ASAR issue)
I am building a desktop application using:
Electron ^28.0.0
electron-builder ^24.9.0
Prisma ^5.8.0
Vue 3 + TypeScript
During development (electron .) everything works correctly.
However, after ...
Best practices
0
votes
0
replies
48
views
How should I handle nest npm libraries in my npm package?
I would like to create an npm library for a base electron client where consumer projects use the same shared main process/renderer/preload. And currently exposing a defineConfigs function that ...
Score of -1
1 answer
168 views
Calling FindWindowW("Progman", "Program Manager") always returns a null handle
I'm using the koffi library to call Win32 APIs from TypeScript. However, I'm stuck at the very first step: FindWindowW consistently returns 0 (NULL), indicating that the Progman window cannot be found....
Score of 1
0 answers
96 views
Crash in Napi::Function::New(env, FunctionName) call
I am working on an Electron project with node-api (for C++ addons). The app crashes, even after a full-build. The problem that I am facing occurs within the C++ template addon that I have made.
I have ...
Score of 2
0 answers
103 views
How to programatically start a drag for an Electron app on X11
I've been trying to reimplement electron-click-drag-plugin for the needs of my Electron app. But I hit a hard wall when implementing it for X11. I've successfully sent the EWMH event, but it doesn't ...
Best practices
0
votes
1
replies
120
views
55% thorught Elecctron want to create specific for mobile
im a fresher Bscit student creating an managment tool application , for a company using antigravity, in halfway through the application but when i was looking for deployement , noticed electron in ...
Score of 0
1 answer
71 views
Error: posix_spawnp failed. when trying to launch a Pty with node-pty
I am trying to build a simple terminal emulator with electron and node-pty.
But when the app starts, it immediately crashes with the message
(node:51806) UnhandledPromiseRejectionWarning: Error: ...
Score of 0
0 answers
98 views
Enable Overlay Scrollbars in Electron app
There is a chromium flag called "overlay-scrollbar". It is supposed to re-enable css overflow: overlay.
Some websites and articles claim that this chromium flag is disabled. However, it is ...
Tooling
0
votes
2
replies
58
views
Feasibility of capturing system + mic audio in real-time for a desktop app (cross-platform)
Question:
I’m exploring the architecture for a desktop application that needs to:
Capture both microphone input and system audio (e.g. Zoom/Meet calls)
Process the audio stream in near real-time (...
Advice
0
votes
0
replies
288
views
Cross-Platform Desktop Wars: Electron vs Tauri: How do you explain the tradeoffs to users (without sounding defensive)?
I am writing cause I wanted to get some opinions from folks here that have actually built and shipped with Electron.
Background: Building an API IDE on Electron. Not really “just an API client”, and ...
Score of -2
1 answer
86 views
Page Persistence After Reload in Electron App Development [closed]
I'm developing an Electron web-like desktop app.
I currently have a Login Page and a Home Page. Currently, the logic for login is implemented for development only so values are configured in an .env ...
Score of 2
0 answers
140 views
How to load extensions in an Electron project?
I imported the Chrome Manifest v3 extension into my project,
but it failed to run due to errors of type “onRemoved” and “onClicked”.
How can I resolve this issue?
(electron) 'session.loadExtension' is ...
Advice
0
votes
7
replies
157
views
Creating an android sync tool
I was tasked with creating a system that would basically update a device with information. In that system it needs to connect to an android device with code. How can i do so without adb or developer ...
Score of 2
0 answers
88 views
Electron-Builder NSIS installer uses default Electron icon for desktop shortcut instead of my custom icon
I’m building an Electron-based IDE (https://github.com/Temple-Enterprise/Axiowisp) using electron-builder with the NSIS target on Windows.
I have a custom .ico file configured in my build settings:
&...
Score of 0
0 answers
76 views
Using Dotenvx with Electron, Electron Forge, & Webpack
I am trying to decrypt and import my env variables with Dotenvx. Previously we were using the traditional dotenv package which all worked. We want to switch to dotenvx for the encryption capabilities ...
Score of 0
0 answers
91 views
Prisma Client in Electron + Vite + pnpm workspace: @prisma/client did not initialize yet vs PrismaClient is not exported
I’m using Electron + Vue + Vite in a pnpm workspace, and I’m stuck between two Prisma import errors.
Environment
Electron 28.x
Prisma 5.22.0
@prisma/client 5.22.0
Vite + vite-plugin-electron
pnpm ...
Score of 2
1 answer
81 views
Electron Builder not applying icon.ico to the generated .exe (Electron v33 + electron-builder v26)
I’m having an issue where my Electron app does not apply my icon.ico to the generated .exe file or its shortcuts after building the Windows installer.
I’m using:
electron: ^33.0.0
electron-builder: ^...
Best practices
0
votes
0
replies
61
views
How to open the Windows 10 on-screen keyboard in an Electron app?
I’m developing a desktop application for Windows 10 using Electron and Node.js. How can I programmatically open the Windows 10 on-screen (virtual) keyboard?
Currently, I’m opening the touch keyboard, ...
Score of 0
0 answers
119 views
how to include required dependencies on an electron app
For example, including a screenshot functionality (npm screenshot-desktop) require imagemagick in linux (installed via sudo apt install imagemagick )
I tried to compile the app (using electron forge, ...
Score of 0
0 answers
76 views
Server access error when building and running Electron.NET application
I've encountered a strange problem.
I have an Electron.NET application.
In Startup.cs
var window = Electron.WindowManager
.CreateWindowAsync(new BrowserWindowOptions
{
Width = 1152,
Height = 940,
...
Score of 0
0 answers
50 views
About using react-router-v5 on Electron [duplicate]
I want to use react-router v5 in electron app. I have a navbar component like this. But whenever I click on an Navlink (by default it's Home), it don't switch to exact component as I want. Here is my ...
Score of 3
0 answers
185 views
Embedded static build in iframe (Electron Forge + Vite)
In principle, all I'm looking to accomplish is embed a static build of a web app into an electron powered vite app.
Context
== File Structure ==
- public/
| - static_build/
| - index.html
| - ...
...
Score of 2
1 answer
149 views
Electron/Vite hot reload: any "on close" method?
I'm using Electron and Vite package to manage hot-reload on my app.
I'd like to call an event on close, which does some stuff, which works on both user's close and Vite's hot reload (which close the ...
Score of 2
1 answer
179 views
Angular Electron: Typescript component is not rendered in index.html
I am new in Angular environment and I am actually developing a little desktop app with electron.
I have inserted the selector (app-root) of the App component (generated automatically) into index.html'...
Tooling
1
vote
5
replies
236
views
Large build size for Electron app using vite and electron-builder due to node_modules
I have an Electron app that I build using webpack + electron-forge. I consider to migrate to vite + electron-builder. The migration succeeded quite smoothly, and dev experience with vite is way better ...
Score of 1
1 answer
115 views
Electron vibrancy not working on macOS, showing solid gray background instead of transparent
I'm new to building Electron apps and was trying to create a transparent, blurred window in a Vite + React + Electron app using vibrancy: 'under-window'.
I checked both the CSS and the BrowserWindow ...
Score of 0
1 answer
138 views
How to solve electron-prebuilt-compile build and install error
The project is electron+typescript, I enter two commands npm run build and npm start, it hints need install electron-prebuilt-compile package, as shown image.
https://i.sstatic.net/fyvYMR6t.png
The ...
Score of 0
0 answers
127 views
How to automate an Electron app that only opens via a deep-link using Playwright?
I’m trying to automate an Electron desktop application using Playwright, but there’s a complication:
The app cannot be opened manually.
It only launches when an exam link is clicked, e.g., exam://...
Score of -3
1 answer
89 views
electron spawn exe app -> Windows opens Task Manager instead of running the app [closed]
I am using spawn to open exe app, it's open success but behind Window Task manager, can someone help? I am using tablet mode:
kioskProcess = spawn(
'cmd.exe',
[
'/c',
...
Score of 0
1 answer
572 views
Getting Deprecation Warning with Electron Builder
I am packaging my Electron application with Electron Builder. The command is:
npx electron-builder build
The build works well enough, but I get the following warning:
(node:27191) [DEP0190] ...
Score of 2
0 answers
61 views
I would like to do print a JPG file from my Electron JS App, but it ended with it just print it in a half
I just make a simple photobox electron app. The printable photo is already set in the sessionPath with name "photo_print.jpg". The problem here is the print function is error, the result is ...
Score of 1
1 answer
100 views
Registering a protocol handler in Electron
As far as I’m aware, the old way of registering protocols has been deprecated.
In my code I have the following for an internal protocol:
// Before:
protocol.registerStringProtocol(
'doit',...
Score of 1
0 answers
46 views
Is it possible to speed up checking a second instance of an Electron Application
From the answer to a question I asked (Electron: Drag and Drop a file on the icon) I have the following code to process files dropped on an icon for a running Electron app:
// main.js
const {app, ...
Score of 3
1 answer
505 views
Disable Windows code signing with Electron Builder
I’m using Electron Builder to package my application. I’m doing this on a Macintosh because I can, and that’s my development environment.
The command is:
npx electron-builder build --win --x64;
It ...
Score of 0
1 answer
70 views
Electron crash due to libusb conflict between yoctolib-cjs and other USB libraries
I am developing a Windows Electron application and I suspect a USB / libusb conflict between the usb library and Yoctopuce’s JavaScript API (yoctolib-cjs/yocto_api).
When both are used in the same ...
Score of -3
1 answer
106 views
When is the renderer process in Electron application actually ready to listen for the events?
According to my intentions, the application must display the loading screen until FileManager class will finish the initialization. Once this initialization done, the broswerWindow must to submit the &...
Advice
0
votes
2
replies
60
views
What is the Build folder and what is its context in Electron-vite?
I am working on a project using electron-vite and using the @quick-start command for scaffolding the project.
When I used this template, it came with a folder called "Build". I tried to ...
Score of 0
1 answer
94 views
How can I import React components in an Electron app?
I am trying to import a React component Menu.jsx from App.jsx in my Electron app. No errors are showing up, but nothing is being rendered and are not added to the DOM (the body is empty when I looked ...
Score of 0
1 answer
92 views
How to open files from the user's local device in serverside Blazor using ElectronNET?
I created a serverside Blazor App and "electronized" it by following the instructions in the read me on the electronNET/electron.NET github page. One of the requirements for this app is to ...
Tooling
0
votes
2
replies
43
views
Prevent Certain DOM Elements from being Screen Recorded in Electron
I have a React web app that I am running inside an Electron app. I am doing this so that I can screen record like so:
window.electronAPI.startRecording();
However, some of the content on the screen ...
Score of 0
1 answer
76 views
Firefox SSO login shows file picker dialog instead of opening browser on Ubuntu 22.04/24.04
I'm developing a Linux application that opens SSO authentication URLs in the default browser.
On Ubuntu 22.04 and 24.04, when Firefox is the default browser, clicking the SSO link shows a file picker ...