15,285 questions
-3
votes
0
answers
31
views
MacOS gear icon for Settings menu item in Electron [closed]
How can I make a Settings menu item in Electron menu use the native macOS gear icon?
0
votes
0
answers
47
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
31
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
79
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 ...
-2
votes
1
answer
63
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 ...
2
votes
0
answers
95
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
133
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 ...
2
votes
0
answers
59
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:
&...
0
votes
0
answers
60
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 ...
0
votes
0
answers
67
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 ...
2
votes
1
answer
64
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
50
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, ...
0
votes
0
answers
81
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, ...
0
votes
0
answers
63
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,
...
0
votes
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 ...
3
votes
0
answers
164
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
| - ...
...
2
votes
1
answer
131
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 ...
2
votes
1
answer
153
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
150
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 ...
1
vote
1
answer
80
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 ...
0
votes
1
answer
100
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 ...
0
votes
0
answers
92
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://...
-3
votes
1
answer
72
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',
...
0
votes
1
answer
415
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] ...
2
votes
0
answers
54
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 ...
1
vote
1
answer
79
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',...
1
vote
0
answers
35
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, ...
3
votes
1
answer
266
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 ...
0
votes
1
answer
63
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 ...
-3
votes
1
answer
97
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
53
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 ...
0
votes
1
answer
79
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 ...
0
votes
1
answer
81
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
40
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 ...
0
votes
1
answer
60
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 ...
2
votes
1
answer
104
views
ElectronJS shell openPath cannot open file inside app.asar
Try to open a HTML file that resides inside the packaged app app.asar file. The file is there but Windows complains that cannot find the file. The pieces of the puzzle are:
inside the win-unpacked\...
-1
votes
1
answer
64
views
Electron IPC: File objects arrive as empty objects {} in main process
Problem
I'm trying to send multiple files from the renderer process to the main process using Electron's IPC, but the file objects arrive empty.
Renderer Process:
if (files?.length > 1) {
window....
Advice
0
votes
5
replies
53
views
Generating Interactive Documentation from Javascript Source Code
I’m working on an Electron project, and I can generate JSON for my code using JSDoc:
jsdoc -X > data.json
I want to use this JSON output to create a live, searchable documentation site similar to ...
0
votes
2
answers
101
views
Electron: Alternative to navigator.geolocation.getCurrentPosition without API key? [closed]
In my Electron app, navigator.geolocation.getCurrentPosition() always fails. It seems that Electron (Chromium) no longer provides free geolocation and expects a third-party service with an API key (e....
Advice
1
vote
2
replies
174
views
Tauri or Electron js
I’m starting a new project to build an ERP POS application using the MERN stack. I’m confused about whether I should use Electron.js or Tauri to turn it into a desktop/web app. Which option is better ...
0
votes
0
answers
76
views
Electron Builder: Built app starts UI but server + SQLite database do not run in packaged versio
I have an Electron application that uses:
React for the frontend
Node + Express backend inside /Server
A SQLite database stored inside the same /Server folder
During development, everything works ...
1
vote
0
answers
62
views
Generating a virtual image for an Electron application
I’m trying to replace a the content of an image URL with the result of a custom protocol. The idea is to get the data from a zip file.
The img element looks something like this:
<img src="...
1
vote
0
answers
58
views
How to properly log HTTPS (especially SSE) request responses in Electron webview without using deprecated APIs?
Here's a minimal GitHub Gist that runs on Electron Fiddle :
It's supposed to show GitHub Copilot (github.com/copilot) in a webview element as if it was in a normal browser :
Using the following code ...
0
votes
0
answers
84
views
Why drag and drop from my application is not happening to any external applications in electron
My problem:
I want to drag a file from my application into the another application like Paint , Windows Excel , Windows Files system ect, but the drop is not happening.
I have an Electron app. The ...
0
votes
1
answer
60
views
Why window.close() from renderer process doesn't trigger the close event in Electron's main process?
I'm building an Electron application and trying to close a window from the renderer process using window.close(). However, the close event listener I've registered in the main process isn't being ...
Advice
2
votes
1
replies
79
views
How does Discord reuse code for their desktop and browser apps?
I have made a web application that I want to support as an electron app. My plan was to thinly wrap my existing webapp code in an electron app and support a few small features like global hotkeys.
The ...
0
votes
0
answers
102
views
How to prevent Electron BrowserWindow from being throttled when other apps are in fullscreen on macOS?
I'm building a floating mic/system audio visualizer widget in Electron. The widget uses a panel type BrowserWindow that stays on top of all windows, including fullscreen apps.
The issue is that when ...
0
votes
0
answers
45
views
Resolving “You may need a suitable loader to handle this file type” in Electron environments
I added firebase-electron to my Vue CLI Plugin Electron Builder project using yarn, but I encountered the following error.
I'm using Webpack 4.43.0.
How can I resolve this error?
error in ./...
0
votes
0
answers
56
views
How can I prevent @electron/packager and @electron/get from downloading of SHASUMS256.txt and attempting to validate artifact?
The file electron-v38.4.0-win32-x64.zip already exists in the Electron cache directory at:
D:\sandbox\electron\Cache\170c37ecabce6b93655518bed5da6604d76afeb91dd19907c5ab5f7b83d3d891\electron-v38.4.0-...
2
votes
2
answers
183
views
"headless" playwright tests fail because button click does not work
We have some Tests for our electron node.js UI. They work fine if run on our desktops (windows and linux, even on linux via SSH and local X-Server)
But the moment they run in our Jenkins pipline they ...