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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

Electron 17: Error: EACCES: permission denied, mkdir '/Users/

I'm trying to compile oxen-io/session-desktop on my Mac. I follow their build instructions within CONTRIBUTING.md. When I do yarn install --frozen-lockfile it returns: yarn install v1.22.19 [1/6] 🔍 ...
Martin Braun's user avatar
  • 10.5k
0 votes
0 answers
10 views

How use electron-tabs lib with electron-react-boilerplate?

I installed the electron-tabs lib on electron-react-boilarplate and this error occurs: App.tsx import { FC } from 'react'; import { TabGroup } from 'electron-tabs'; const App: FC = () => { const ...
Miiih's user avatar
  • 1
0 votes
1 answer
15 views

Electron prevent opening same window multiple times

I am developing an Electron application which includes a few seperate windows. I am using a button click event to open new window and call window.open method. Problem is, if I click the button more ...
X999's user avatar
  • 440
1 vote
0 answers
10 views

chrome-remote-interface: CDP is not a function

In an electron project, I want to acces a running chrome instance in order to open some sites, that I cannot open via command line (i.e. chrome://inspect). I tested the code on my machine locally and ...
udgey98's user avatar
  • 11
0 votes
0 answers
6 views

fail to minify asapqueue while building electron

My project is using react ver 16.13.0 and electronNet ver 13.5.1. Recently I added some plugin for my project: react-dnd (11.1.3) and react-dnd-html5-backend (16.0.1). Everything is working fine in ...
CnV's user avatar
  • 381
0 votes
0 answers
20 views

Why should I use electron instead of a navigator with a local backend?

In my company we have an old project on which we would like to modernize the interface with web technologies. This project is a software application that run with C# and Windev framework (we would ...
Stunkel's user avatar
0 votes
1 answer
10 views

Why is my Vue 3 watch callback not firing for a ref variable in useMenu.ts but works in AppLayout.vue in my Electron-Vue3 project?

vue3 watch is not work I tried to watch a ref variable in my electron vue3 project, and the watch callback didn't fire in usemenu.ts, but it did fire in AppLayout.vue, I think maybe I called useMenu ...
x w's user avatar
  • 11
1 vote
0 answers
12 views

How to change Electronjs title bar text without changing the Window dropdown document name?

In Electonjs how can you change the window title bar without changing the name of the document in the Window dropdown Menu? I'm trying to add a " - Edited" text to the window title bar once ...
theCodeBear's user avatar
0 votes
0 answers
14 views

Preloaded object not preloading in Electron

To make a long story short, I had a working script which had a "vers" object preloaded (in the way the electron tutorial told me to) and then had properties of the vers object displayed in ...
Ryoji 's user avatar
1 vote
0 answers
17 views

Electron + Vite + React Unexpected Application Error! 404 Not Found in Production

I developed a react application with vite which I am trying to convert to a desktop application using Electron. When I run electron in development mode, everything works fine; but in my production I ...
fagbemi ayodele's user avatar
-1 votes
3 answers
38 views

Send data to the server as a File

I received an image in the form of a Bitmap from the clipboard and need to send it to the server as a file. How do I implement this without saving it as a file on the user's computer?
N.Maxim's user avatar
0 votes
0 answers
21 views

Electron.js has broken encoding and UTF-8 not working

Electron.js coding UTF-8 has broken The ipcRenderer receives the data correctly. But that's when it sends already scary characters to the server side. Also, in sequelize, when making requests, it is ...
КИТ KIT's user avatar
0 votes
0 answers
11 views

Electron contents.undo() when the button is clicked?

I'm using electron-react-boilerplate, how to undo when button is clicked with contents.undo() ?
codingcat's user avatar
0 votes
0 answers
15 views

How can I fix 'undefined' output from my function that retrieves cookie values in Electron using Node.js promises? [duplicate]

I have this function to get cookies values if cookies exist or false if not, but i get undefined This is my function : function ifCookieExist(cookieName) { session.defaultSession.cookies.get({ ...
Oswald's user avatar
  • 1
-1 votes
1 answer
13 views

Is it possible to create a Ionic app that works on windows and android from a single codebase?

I am planning on building a simple cross-platform video editor using Ionic and OpenCV for JS. I have never used Ionic before, but feel very comfortable with Cordova (which now sadly ended support for ...
Fabrizio Apuzzo's user avatar
0 votes
1 answer
33 views

ElectronJS: How can I change the Electron homepage option when right-clicking the app's icon on the taskbar?

I'm creating an app with Electron. The app is works fine, but when I right-click[1] the app's icon on the taskbar; it shows an Electron option to open the Electron homepage[2]. [1] [2] So how can I ...
Arduino Türk Batu's user avatar
0 votes
1 answer
22 views

How can I set cookies in my Electron JS application using response headers from my backend like in Postman?

Setting cookies from response-header in electron js Hi there, I'm new in developing application using electron JS. Now I'm currently working on the authentication components. The problem is when I try ...
akmalhazriq's user avatar
0 votes
0 answers
12 views

Electron app not detecting updates from GitHub using electron-updater

I'm developing an Electron application, and I'm trying to implement automatic updates using the electron-updater package with GitHub as the provider. However, my Electron app is not detecting updates ...
Rinkychan's user avatar
0 votes
1 answer
30 views

How to run a function in a singleton file only when electron main process is ready

I am using electron + vue, in my vue files, there is a file called globals.ts which is a file that exports global variables for all my vue files to use, it is a singleton file, I am trying to get it ...
wren's user avatar
  • 373
0 votes
0 answers
16 views

How can I package NextJS app into an installable desktop app using Electron and electron-builder?

I'm trying to create desktop installable files for macOS, Linux & Windows. I already have a webapp built in NextJS & want to convert that app in desktop apps using electron & electron-...
Awais Ahmad's user avatar
0 votes
1 answer
21 views

Electron app is not showing notifications and I can't find my app on the windows notification center

I have an electron app. It used to show notifications as usual (Win11) but one day I switched them off from the notification tile. And now I cannot switch them back. Notification-example I tried to ...
Gabriela Razo's user avatar
0 votes
0 answers
13 views

How can I fix the error 'webpack_require__.g.addEventListener is not a function' in Tesseract.js with Electron and webpack?

I'm trying to build an Electron/Webpack app that uses Tesseract.js for OCR, but when I call Tesseract.createWorker, I get this error message: A JavaScript error occured in the main process. Uncaught ...
quartzic's user avatar
  • 309
0 votes
1 answer
22 views

Send and receive data between Electron and react

I am trying to send data from my react .js file to electron main.js file and based on that return back to react .js file. I have tried by using electron forge and without it. I want to call a Mysql ...
shubham Patel's user avatar
-1 votes
0 answers
6 views

How can we Remove the Apllication Data of an electron Application when we uninstall it on mac?(using electron-builder)

I have created an electron Application and packaged it using electron-builder, I installed the App then after uninstalling the application the Application data in Library/Application Support/App_Name ...
MUHAMMED ASHIQUE's user avatar
0 votes
1 answer
21 views

Electron forge: forge.config for icon

I'm trying to follow the documentation to change the app's icon when start make but the app is built with a default icon or get an error 'Fatal error: Unable to set icon' (if add to new MakerSquirrel (...
Andrew's user avatar
  • 35
0 votes
0 answers
22 views

Electron notification "show" method not working during Microsoft teams meeting screen sharing session

Electron notification "show" method not working during Microsoft teams screen sharing. I am using windows machine and electron-forge package for packaging the application. Notifications are ...
Shrikant's user avatar
0 votes
0 answers
24 views

Adding Authorization Header to WebSocket in React Electron App

I'm attempting to connect to a third party secure websocket that uses Bearer Auth via Header from what I've been told. Based off of most answers here and elsewhere setting headers isn't something that'...
Karoly S's user avatar
  • 3,170
0 votes
0 answers
19 views

WebRTC Screensharing in electron not working

We have a web app to which I'm building electron app by loading URL in browserWindow. But when i try to share the screen it will give me a blank popup, Please help as i have cross the timeline I have ...
Zohaib Daruwala's user avatar
0 votes
0 answers
27 views

Need help for converting an existing react app into an exe file [closed]

I have a react.js app which I need to as an exe file (installer) for all windows, Linux and Mac. I know that for react to be run on desktop we need electron js . will converting react into electron....
Praveen Gautam's user avatar
1 vote
1 answer
25 views

Learning Electron, trying to send data to renderer from main but appearing as undefined in renderer. Any help much appreciated

Am working with electron and encountering and issue that I cannot for the life of me fix despite it being so simple, where my received data is showing as undefined in renderer, yet shows correctly ...
benmag11's user avatar
0 votes
1 answer
26 views

How to receive data from main process every loop iteration in Electron JS?

Good evening! Can you tell me how it is possible to get data from the main process to the render process every iteration in the loop, in order to display the process to the user? Thanks! main.js ...
Shoshin's user avatar
  • 23
0 votes
0 answers
14 views

Connect MySQL datbase in Electron+React application

I am building a desktop application using ElectronJS and ReactJS.I want to fetch and update data in to Mysql database. How can I archive this inside desktop application. I am new to this so is their ...
shubham Patel's user avatar
1 vote
2 answers
83 views
+100

electron webpack Uncaught ReferenceError: require is not defined "querystring"

I'm trying to run an old electron app, but I can't figure out which node version to use, nor which part of the config/dependencies to update. I added electron webPreferences in the windows, but it ...
belgacea's user avatar
  • 1,024
2 votes
1 answer
41 views

Electron - how to fetch a file from a local path and create a blob file

I have this code in my background.js file of an electron app. ipcMain.on('init', (event, ...args) => { fileSelector = dialog.showOpenDialog({ title: 'Select template', ...
ICTDEV's user avatar
  • 386
2 votes
0 answers
23 views

Push notifications registration in electron using APNS does not work

I started building an electron app which is supposed to receive push notifications for critical events from a server I control. It has to work on all 3 major desktop platforms (windows, macOS, linux). ...
Fresh Fries Fiesta's user avatar
0 votes
0 answers
18 views

Electron | Security Issue LACK OF BINARY PROTECTIONS

Our security team has come up an issue for our electron application we have developed using npm. How could an electron app be compiled and packaged with the following specific flags enabled as "...
Praveen Kumar's user avatar
0 votes
0 answers
9 views

How can I auto-update electron using hazel?

I would like to know how to auto update electron using hazel. I have successfully auto-updated macs. On windows, the auto-update does not work. The log on the windows local machine stated can not find ...
figalo66's user avatar
  • 155
0 votes
0 answers
21 views

Unable to import Agora SDK into React + Vite

I am migrating React CRA project to Vite usage and i encounter one issue with "agora-rtc-sdk-ng": "4.17.2" package. After the migration i am getting this error: [plugin:vite:import-...
Przemek Wit's user avatar
0 votes
0 answers
32 views

Vue - how to correctly loop array of subarrays

I have this code in a vue component of my electron app. paginateDatasets() { // Splitto array fornitori per impaginazione for( let i = 0; i < this.store.suppliers....
ICTDEV's user avatar
  • 386
0 votes
1 answer
26 views

How to display two windows in Electron app with Electron Forge and Vite

I'm building an Electron JS app using Electron Forge and Vite, and I'd like to display a second window in the application, but it isn't displaying properly. When I run npm run start the second window ...
StaticMethod's user avatar
0 votes
1 answer
52 views

How to add const fs = require('fs') to Electron, in renderer without including nodeIntegration: true, contextIsolation: false

I need to build an IPC, but I do not understand how to do this. I read the documentation and this is -https://github.com/electron/electron/issues/9920#issuecomment-575839738, but couldn't do anything, ...
Anrisssss's user avatar
0 votes
0 answers
12 views

How to disable devtools on electron.lauch() in playwright end-to-end testing

Playwright electronApp.firstWindow() sometimes returned the DevTools window and sometimes the actual main window. If the DevTools window is returned, the test waits indefinitely for the selector. ...
Naresh Renukuntla's user avatar
0 votes
0 answers
6 views

Package an Electron app on an Apple Silicon chip for Windows with Electron Packager

I'm using Electron Packager to distribute an application created with Electron. I'm using a Mac with an Apple Silicon chip (M1 to be exact). The problem is that I also need to distribute this ...
Tom's user avatar
  • 609
0 votes
0 answers
17 views

Electron - call function in preload.js sync or async?

I'm trying to convert bigger React JS (webpack 5) project into Electron to use FS feature. I was successful to convert it and use electron-forge for local testing. I'm learning how Electron work and I ...
user2014521's user avatar
0 votes
1 answer
44 views

How to implement pagination or infinite scroll for two scrollable columns in vue

I need a quick tip about pagination with infinite scroll. I have two bootstrap columns that will use an ul element to create a scroll list that is loaded from database. I want to implement a lazy load ...
ICTDEV's user avatar
  • 386
0 votes
0 answers
16 views

How to update Electron JS webview?

I was making my own web browser in Electron JS. Everything was working properly but whatsapp web didn't opened, it shows to update Chrome. I know that electron uses chrome but the version is very ...
Nishant Deb's user avatar
0 votes
1 answer
14 views

Electron renders blank page once I implemented vue-router

I am currently building app using Vue3 and Electron. But once I implemented vue-router, I can only see blank page. I installed vue3 and electron separately. If I only render component not router view, ...
Branch's user avatar
  • 88
0 votes
1 answer
7 views

Cursor grabbing style not work in Electron JS

I'm developing the App with ElectronJS. I wont to do some element draggable by JS-manipulation. During element grabbing i want change cursor view by style cursor: grabbing, but it doesn't working. ...
Eujenio Gonzalez's user avatar
0 votes
0 answers
19 views

WiX toolset config

So I have this piece of code from MyApp.wxs <Product Id="xxx" UpgradeCode="xxx" Name = "MyApp (Machine - MSI)" Version="0.0.1.0&...
B A N G A T A's user avatar
0 votes
0 answers
9 views

How to download anything from the webview in electron js?

const { BrowserWindow, app, ipcMain, ipcRenderer } = require("electron"); function MainUI() { let ui = new BrowserWindow({ width: 1280, height: 720, title: "Browsify", ...
Nishant Deb's user avatar

1
2 3 4 5
298