Questions tagged [electron]
Electron (formerly Atom Shell) is a framework created by GitHub that lets you write cross-platform desktop applications using HTML, CSS and JavaScript. Electron is based upon Node.js and Chromium.
electron
15,509
questions
0
votes
0
answers
20
views
How to make all new tabs/windows in electron direct to new electron-tabs
I'm currently working on some JavaScript code for a project. My goal is to make Electron open all links that would normally result in "pop-ups" to open in new tabs under the electron-tabs ...
5
votes
1
answer
821
views
Hide window of electron app on workspace change (on macOS)
In this this SO thread is described, how to get a background tray app working on multiple workspaces (on macOS).
But when using the given code example with the win.setVisibleOnAllWorkspaces(true) ...
0
votes
0
answers
10
views
How do I check if the webview and the app are not focused
My app thinks it is not focused while the <webview> is focused.
It checks if the app and the webview's IsFocused function returns true
I'd like it to work,not do false positives!
I tried GPT3, ...
1
vote
0
answers
5
views
ERR_SSL_CLIENT_AUTH_CERT_NEEDED when sending custom client certificate from Electron
I have been trying to send a certificate (in the form of a .pem file) from Electron to my backend (using gevent) and encountering the following error
(node:18946) electron: Failed to load URL: https://...
3
votes
2
answers
2k
views
Problem while packaging application with electron-forge "EPERM operation not permitted RMDIR"
It's been a while when I last successfully packaged a electron-forge application, so I had to repackage due to a icon change. As I tried to run npm run make OR npm run package, as the command line was ...
0
votes
0
answers
11
views
Electron Forge does not pass specific `arch` for universal Mac builds
We are using ffmpeg-static in our Electron app, and creating a universal mac build via electron-forge and under the hood electron/universal. But only the arm64 ffmpeg binary exists in the final app. ...
3
votes
2
answers
7k
views
How to set column size using DOCX.JS
I am creating an application using electron and react, and I will need to create a Word text document dynamically, I found a great package, DOCX, but I need to create some tables, and I can't set the ...
0
votes
1
answer
14
views
Cannot Import local module/file in Electron-vite (vue)
index.js(entry point of electron)
import { connect } from "./MongoDB";
MongoDB.js
module.exports = {
connect,}
error-
> electron-vite dev
vite v5.3.4 building SSR bundle for ...
0
votes
0
answers
13
views
Electron Store working in dev mode but not in production
I am using Electron Store in Electron Js Project. The app is successfully built. But the electron store is not working in production/build version as I am not able to store the data persistently. What ...
0
votes
1
answer
5k
views
Using electron-store with react
so i've been messing around with electron and react to create an application, and i've been searching for a way to store data. Not like a lot of data, just a few things that i need.
i've found that ...
0
votes
0
answers
8
views
Can't debug the frontend of Electron/TypeScript/React/Webpack project in VS Code
I am working on Electron/TypeScript/React/Webpack project, this is my launch.json file in VS Code Run and Debug:
{
"version": "0.2.0",
"configurations": [
{
...
12
votes
2
answers
12k
views
Play local .avi videos in Node.js / Electron app
Maddening gap in an app I'm developing is there appears to be little (or no) support for AVI in the HTML5 video implementation. So, I need a workaround that is cross-platform, and package-able with my ...
0
votes
0
answers
5
views
How to create a minimize button?
index.js
const mainWindow = new BrowserWindow({
width: 800,
height: 600,
resizable: false,
frame: false,
icon: path.join(__dirname, 'icon.png'),
webPreferences: {
preload:...
4
votes
4
answers
11k
views
Failed at the [email protected] postinstall script
I was trying to install electron into my project, but it is giving an error. I also tried to do this with unsafe-perm, but still giving the same error.
npm install electron --save-dev --save-exact
&...
0
votes
0
answers
15
views
SSH2-SFTP-client module won't import
I am trying to import and use the ssh2-sftp-client package for my React/Electron project, but any time I add the import to a file, I get a massive wall of module errors. They are all either
"Can'...
92
votes
5
answers
100k
views
Electron Take Up 100% Of Screen (Not Full Screen)
I've got an electron app, below is the main.js file:
var app = require('electron').app;
var BrowserWindow = require('electron').BrowserWindow;
app.on('ready', function() {
mainWindow = new ...
0
votes
0
answers
33
views
node native c++ code in electron unexpected character
This is my folder structure:
└── my-electron-project/
├── lib/
│ └── addon/
│ ├── build/
│ │ └── Release/
│ │ └── addon.node
│ ├── addon.cc
│ ├── binding.gyp
│ ...
2
votes
2
answers
3k
views
How to set a custom path for Electron app installer
Is there a way to ask custom installation path to the user during electron app installation?
4
votes
0
answers
2k
views
Electron fixed position to the right side of the screen
I'm currently trying to implement the toolbar which is fixed to the right side of the screen. Initial state works fine. When I try to dynamically change the content width from the app, BrowserWindow ...
0
votes
0
answers
13
views
pathMapping in vs code debug is not working
I have the following as my launch.json file
{
"version": "0.2.0",
"configurations": [
{
"name":"Launch vite:dev",
"request&...
3
votes
1
answer
3k
views
Playwright upload file on non-input element
So I'm currently trying to automate uploading a profile photo on an Electron App using Playwright and I'm running into issues with 'filechooser' event.
await windowA.click('data-testid');
const [...
0
votes
0
answers
69
views
net::ERR_CONNECTION_RESET when trying to fetch/getting data from localhost http server
I got a http server in C++ running on my localhost to get some data transfered to my electron react frontend. Unfortunately I run into heavy issues and I tried googling all day & night. It uses ...
0
votes
0
answers
23
views
Backend Port Remains Open When Electron App Exits
I'm doing an electron app, but every time I close or quit the app it leaves a pid hanging from the port that the backend opens. How could I kill all the process when I close the app?
This is the ...
-1
votes
0
answers
16
views
self hosted SSL for electron app front-back communication
For and Electron JS app, with python backend flask server, openssl self hosted certificates have been suggested for secure https connection between he frontend and backend.
I wanted to ask if this is ...
-1
votes
0
answers
18
views
How to Package and Distribute an Electron App for Use on Another Computer? [closed]
i'm very new to development (i started learning 4 months ago) and i took the challenge to make a simple desktop app using VSCode and electron for my internship's supervisor, it basically helps him to ...
-4
votes
0
answers
49
views
Bug in finding image in electron with sqlite [closed]
So, my problem is that my app can't find my image, and on my sqlite database there's just a txt file that says undefined:
This function goes immidietely after entering the app
ipcMain.on('load-...
0
votes
0
answers
18
views
Desktop application with file manipulation [closed]
So I want to create a desktop app that is run locally. It doesn't need to use internet. But it does need to read, write and create some excel files. Now I wrote the app in react.
And I did some ...
0
votes
2
answers
56
views
How do I gray elements based on class name?
I'm trying to grey the border elements smoothly with css smoothing and it does nothing and the elements are 1 pixel thick
code:
function greyBorder()
{
var elms
...
1
vote
0
answers
14
views
Executable/installable files with electron FE and python BE
I have a problem with my current project.
I have a backend written in python which i complain with pyinstaller to an exe.
The py BE communicate with websockets with the FE written in JS/hmtl/css.
I ...
0
votes
0
answers
11
views
Icons of Element UI do not appear
I'm using Element UI with an Electron - Vue 2.6 - Vite - SCSS app, and the icons (like ) do not appear. All the other Element UI components work just fine.
I have followed the instructions on https://...